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