Quellcode durchsuchen

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
master
Kevin Liu vor 5 Jahren
committed by Eugen Rochko
Ursprung
Commit
68cccb00ef
1 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen
  1. +3
    -1
      Dockerfile

+ 3
- 1
Dockerfile Datei anzeigen

@@ -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", "--"]

Laden…
Abbrechen
Speichern