mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2025-04-20 07:11:33 +02:00
improve containers
This commit is contained in:
parent
e727f0e438
commit
93a9df63e6
13 changed files with 3255 additions and 176 deletions
33
container/base/Dockerfile
Executable file
33
container/base/Dockerfile
Executable file
|
@ -0,0 +1,33 @@
|
|||
# ~~~~~~~~~~~~~~~~~~
|
||||
# ~~~ BASE IMAGE ~~~
|
||||
# ~~~~~~~~~~~~~~~~~~
|
||||
|
||||
FROM docker.io/ruby:3.2.2-alpine3.17
|
||||
|
||||
RUN apk update && apk add \
|
||||
build-base \
|
||||
curl \
|
||||
linux-headers \
|
||||
nodejs \
|
||||
npm
|
||||
|
||||
ENV DOCKERIZE_VERSION v0.6.1
|
||||
RUN curl -sSLO https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
|
||||
&& tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
|
||||
&& rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
|
||||
|
||||
ARG USER_ID=1000
|
||||
RUN addgroup srm && \
|
||||
adduser --disabled-password --uid $USER_ID --ingroup srm srm
|
||||
|
||||
RUN mkdir -p /app/
|
||||
|
||||
WORKDIR /app/
|
||||
|
||||
COPY Gemfile Gemfile
|
||||
COPY Gemfile.lock Gemfile.lock
|
||||
COPY package.json package.json
|
||||
|
||||
RUN npm install -g yarn sass
|
||||
RUN bundle config without development test
|
||||
RUN bundle install
|
Loading…
Add table
Add a link
Reference in a new issue