From 2e744d2878fe82a7932130b833fa8c6f1b73c86e Mon Sep 17 00:00:00 2001 From: Colin Cole Date: Wed, 7 Sep 2022 10:01:14 -0400 Subject: [PATCH] readd rm command --- services/backend/Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/services/backend/Dockerfile b/services/backend/Dockerfile index a01a135f..f0ffaa9a 100644 --- a/services/backend/Dockerfile +++ b/services/backend/Dockerfile @@ -33,14 +33,12 @@ ENV BUNDLE_GEMFILE=/app/Gemfile \ GEM_HOME=/bundle ENV PATH="${BUNDLE_BIN}:${PATH}" -COPY Gemfile Gemfile.lock ./ -RUN bundle install - COPY . . +RUN bundle install RUN yarn install RUN yarn build EXPOSE 4000 -CMD ["/bin/bash", "-c", "bundle exec rails s -b 0.0.0.0 -p 4000"] +CMD ["/bin/bash", "-c", "rm -rf tmp/pids/server.pid && bundle exec rails s -b 0.0.0.0 -p 4000"]