Skip to content

Commit b9e8378

Browse files
Re-add command to Dockerfile (#18)
readd rm command
1 parent 3fe61e8 commit b9e8378

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

services/backend/Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,12 @@ ENV BUNDLE_GEMFILE=/app/Gemfile \
3333
GEM_HOME=/bundle
3434
ENV PATH="${BUNDLE_BIN}:${PATH}"
3535

36-
COPY Gemfile Gemfile.lock ./
37-
RUN bundle install
38-
3936
COPY . .
4037

38+
RUN bundle install
4139
RUN yarn install
4240
RUN yarn build
4341

4442
EXPOSE 4000
4543

46-
CMD ["/bin/bash", "-c", "bundle exec rails s -b 0.0.0.0 -p 4000"]
44+
CMD ["/bin/bash", "-c", "rm -rf tmp/pids/server.pid && bundle exec rails s -b 0.0.0.0 -p 4000"]

0 commit comments

Comments
 (0)