Skip to content

Commit 3fe61e8

Browse files
Separate yarn build and install in backend Dockerfile (#17)
separate yarn build and install
1 parent f85a35b commit 3fe61e8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

services/backend/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ RUN bundle install
3838

3939
COPY . .
4040

41+
RUN yarn install
42+
RUN yarn build
43+
4144
EXPOSE 4000
4245

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

0 commit comments

Comments
 (0)