mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2025-04-20 07:11:33 +02:00
test docker ci
This commit is contained in:
parent
bc541dc0fa
commit
e6fe3022de
7 changed files with 101 additions and 67 deletions
35
container/base/Dockerfile
Executable file
35
container/base/Dockerfile
Executable file
|
@ -0,0 +1,35 @@
|
|||
# ~~~~~~~~~~~~~~~~~~
|
||||
# ~~~ BASE IMAGE ~~~
|
||||
# ~~~~~~~~~~~~~~~~~~
|
||||
|
||||
FROM docker.io/ruby:3.2.2-alpine3.17 AS base
|
||||
|
||||
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 /home/srm/build/
|
||||
RUN mkdir -p /home/srm/app/
|
||||
RUN chown -R srm:srm /home/srm/
|
||||
|
||||
WORKDIR /home/srm/build/
|
||||
|
||||
COPY Gemfile Gemfile
|
||||
COPY package.json package.json
|
||||
|
||||
RUN npm install -g yarn sass
|
||||
RUN bundle config without development test
|
||||
RUN bundle update
|
||||
RUN bundle install
|
Loading…
Add table
Add a link
Reference in a new issue