From: Kevin Liu Date: Sat, 14 Jul 2018 23:19:09 +0000 (-0400) Subject: Dockerfile: run asset precompilation as a build step (#7780) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=68cccb00ef30516396a64af1a7019baa6c36913c;p=mastodon.git 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 --- diff --git a/Dockerfile b/Dockerfile index 0c347a11a..b85d05047 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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", "--"]