fix: cannot precompile assets before copying rails content
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
This commit is contained in:
parent
b324436cf0
commit
57becfdb72
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user