1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

Dockerfile: run asset precompilation as a build step (#7780)

* Dockerfile: run asset precompilation as a build step

* Replace OTP_SECRET and SECRET_KEY_BASE with placeholders
This commit is contained in:
Kevin Liu 2018-07-14 19:19:09 -04:00 committed by Eugen Rochko
parent 955d5d36e8
commit 68cccb00ef

View file

@ -77,8 +77,10 @@ COPY . /mastodon
RUN chown -R mastodon:mastodon /mastodon RUN chown -R mastodon:mastodon /mastodon
VOLUME /mastodon/public/system /mastodon/public/assets /mastodon/public/packs VOLUME /mastodon/public/system
USER mastodon USER mastodon
RUN OTP_SECRET=precompile_placeholder SECRET_KEY_BASE=precompile_placeholder bundle exec rails assets:precompile
ENTRYPOINT ["/sbin/tini", "--"] ENTRYPOINT ["/sbin/tini", "--"]