From b626f76825cbd02e0cfcd405d40930edd0704f57 Mon Sep 17 00:00:00 2001 From: Sho Kusano Date: Sun, 21 Apr 2019 17:13:26 +0900 Subject: [PATCH] Fix assets precompile task --- Dockerfile.best-friends | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile.best-friends b/Dockerfile.best-friends index 18904a01dd04b8..a14f84db7064b4 100644 --- a/Dockerfile.best-friends +++ b/Dockerfile.best-friends @@ -91,4 +91,6 @@ ENV RAILS_ENV=production ENV NODE_ENV=production ENV PATH=/opt/mastodon/bin:$PATH -RUN OTP_SECRET=precompile_placeholder SECRET_KEY_BASE=precompile_placeholder rails assets:precompile +RUN cd ~ && \ + OTP_SECRET=precompile_placeholder SECRET_KEY_BASE=precompile_placeholder rails assets:precompile && \ + yarn cache clean