Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions services/backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]