Skip to content

Commit

Permalink
run asset build later in process to allow knapsack to run it only one…
Browse files Browse the repository at this point in the history
… time
  • Loading branch information
orangewolf authored and jeremyf committed Oct 12, 2023
1 parent 014f7b7 commit 961b712
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,9 @@ ONBUILD RUN git config --global --add safe.directory /app/samvera && \

ONBUILD COPY --chown=1001:101 $APP_PATH /app/samvera/hyrax-webapp

ONBUILD RUN RAILS_ENV=production SECRET_KEY_BASE=`bin/rake secret` DB_ADAPTER=nulldb DB_URL='postgresql://fake' bundle exec rake assets:precompile && yarn install


FROM hyku-base as hyku-web
RUN RAILS_ENV=production SECRET_KEY_BASE=`bin/rake secret` DB_ADAPTER=nulldb DB_URL='postgresql://fake' bundle exec rake assets:precompile && yarn install

CMD ./bin/web

FROM hyku-web as hyku-worker
Expand Down

0 comments on commit 961b712

Please sign in to comment.