From 33a7ce548ae8cd3ca3b13e23b10b1eac31307276 Mon Sep 17 00:00:00 2001 From: Colin Cole Date: Tue, 6 Sep 2022 16:15:04 -0400 Subject: [PATCH] separate yarn build and install --- services/backend/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/services/backend/Dockerfile b/services/backend/Dockerfile index efd3d98e..a01a135f 100644 --- a/services/backend/Dockerfile +++ b/services/backend/Dockerfile @@ -38,6 +38,9 @@ RUN bundle install COPY . . +RUN yarn install +RUN yarn build + EXPOSE 4000 -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"] +CMD ["/bin/bash", "-c", "bundle exec rails s -b 0.0.0.0 -p 4000"]