From 0c34e68653f4bea5344d497e20ea0ea563672cfe Mon Sep 17 00:00:00 2001 From: Kevin Liu Date: Sat, 14 Jul 2018 19:19:09 -0400 Subject: [PATCH] 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 --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 0c347a11ac..b85d050476 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", "--"]