From 57becfdb727d2a287fa1e48a00d9a8f95c2984dc Mon Sep 17 00:00:00 2001 From: Louis Vallat Date: Fri, 7 Apr 2023 00:02:07 +0200 Subject: [PATCH] fix: cannot precompile assets before copying rails content Signed-off-by: Louis Vallat --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 084f4de..c1a5c0a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,9 +18,8 @@ WORKDIR /count_anything COPY Gemfile Gemfile.lock package.json yarn.lock ./ RUN bundle config set --local without 'development test' && \ bundle install && \ - yarn install && \ - rails assets:precompile + yarn install COPY . . -CMD /count_anything/bin/rails db:migrate && /count_anything/bin/rails server +CMD /count_anything/bin/rails assets:precompile && /count_anything/bin/rails db:migrate && /count_anything/bin/rails server