From b7f3f4689cf8c811f36cb3a3a66024cf4b905c71 Mon Sep 17 00:00:00 2001 From: vrifox Date: Fri, 5 May 2023 17:35:22 +0200 Subject: [PATCH] change directories --- container/base/Dockerfile | 6 ++---- container/deploy/Dockerfile | 2 +- container/develop/Dockerfile | 2 +- container/test/Dockerfile | 2 +- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/container/base/Dockerfile b/container/base/Dockerfile index ed0f9ba..01271bb 100755 --- a/container/base/Dockerfile +++ b/container/base/Dockerfile @@ -20,11 +20,9 @@ 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/ +RUN mkdir -p /app/ -WORKDIR /home/srm/build/ +WORKDIR /app/ COPY Gemfile Gemfile COPY package.json package.json diff --git a/container/deploy/Dockerfile b/container/deploy/Dockerfile index 0d7f98d..7cff45a 100755 --- a/container/deploy/Dockerfile +++ b/container/deploy/Dockerfile @@ -4,7 +4,7 @@ FROM code.cozy.town/codeforleipzig/stadtratmonitor/base:latest -WORKDIR /home/srm/app/ +WORKDIR /app/ USER srm EXPOSE 3000 diff --git a/container/develop/Dockerfile b/container/develop/Dockerfile index 242bedf..a00c711 100755 --- a/container/develop/Dockerfile +++ b/container/develop/Dockerfile @@ -7,7 +7,7 @@ FROM code.cozy.town/codeforleipzig/stadtratmonitor/base:latest RUN bundle config without test RUN bundle install -WORKDIR /home/srm/app/ +WORKDIR /app/ EXPOSE 3000 CMD bundle exec puma -C /app/config/puma.rb \ No newline at end of file diff --git a/container/test/Dockerfile b/container/test/Dockerfile index dd86c4a..f43f449 100755 --- a/container/test/Dockerfile +++ b/container/test/Dockerfile @@ -6,7 +6,7 @@ FROM code.cozy.town/codeforleipzig/stadtratmonitor/base:latest RUN bundle install -WORKDIR /home/srm/app/ +WORKDIR /app/ EXPOSE 3000 CMD bundle exec puma -C /app/config/puma.rb \ No newline at end of file