mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-25 16:41:36 +01: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:
parent
955d5d36e8
commit
68cccb00ef
1 changed files with 3 additions and 1 deletions
|
@ -77,8 +77,10 @@ COPY . /mastodon
|
|||
|
||||
RUN chown -R mastodon:mastodon /mastodon
|
||||
|
||||
VOLUME /mastodon/public/system /mastodon/public/assets /mastodon/public/packs
|
||||
VOLUME /mastodon/public/system
|
||||
|
||||
USER mastodon
|
||||
|
||||
RUN OTP_SECRET=precompile_placeholder SECRET_KEY_BASE=precompile_placeholder bundle exec rails assets:precompile
|
||||
|
||||
ENTRYPOINT ["/sbin/tini", "--"]
|
||||
|
|
Loading…
Reference in a new issue