improve containers

This commit is contained in:
Vri 🌈 2023-05-10 22:08:36 +02:00 committed by GitHub
parent e727f0e438
commit 93a9df63e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 3255 additions and 176 deletions

33
container/base/Dockerfile Executable file
View 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