Initial commit
This commit is contained in:
17
Dockerfile
Normal file
17
Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM ruby:2.6.1
|
||||
|
||||
ENV APP_HOME=/home/app
|
||||
|
||||
ARG UID=1000
|
||||
ARG GID=1000
|
||||
|
||||
RUN groupadd -r --gid ${GID} app \
|
||||
&& useradd --system --create-home --home ${APP_HOME} --shell /sbin/nologin --no-log-init \
|
||||
--gid ${GID} --uid ${UID} app
|
||||
|
||||
USER app
|
||||
WORKDIR $APP_HOME
|
||||
|
||||
COPY --chown=app:app . .
|
||||
|
||||
RUN bundle install --jobs=$(nproc) --deployment
|
||||
Reference in New Issue
Block a user