Skip to content

Commit

Permalink
Explicitly set rails env for asset precompiling
Browse files Browse the repository at this point in the history
  • Loading branch information
Splines committed Oct 15, 2023
1 parent 696a395 commit 3d2ce3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/production/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@ RUN yarn install --production=true

COPY --chown=app:app . /usr/src/app
RUN cp -r $(bundle info --path sidekiq)/web/assets /usr/src/app/public/sidekiq && \
SECRET_KEY_BASE="$(bundle exec rails secret)" DB_ADAPTER=nulldb bundle exec rails assets:precompile
RAILS_ENV=production SECRET_KEY_BASE="$(bundle exec rails secret)" DB_ADAPTER=nulldb bundle exec rails assets:precompile

0 comments on commit 3d2ce3b

Please sign in to comment.