From 007bae4d533f966f3fa11aa785642c9be61cf40e Mon Sep 17 00:00:00 2001 From: Reverite Date: Thu, 19 Sep 2019 12:12:50 -0700 Subject: Test Permission Fix --- Dockerfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index db9faaba0..d7490adfc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -112,15 +112,15 @@ ENV NODE_ENV="production" ENV RAILS_SERVE_STATIC_FILES="true" ENV BIND="0.0.0.0" -# Set the run user -USER mastodon - # Precompile assets -RUN cd ~ && \ +RUN su - mastodon -c "cd ~ && \ OTP_SECRET=_ SECRET_KEY_BASE=_ rails assets:precompile && \ - yarn cache clean && \ + yarn cache clean" && \ rm -rf /opt/mastodon/tmp/* +# Set the run user +USER mastodon + # Set the work dir and the container entry point WORKDIR /opt/mastodon -ENTRYPOINT ["/tini", "--"] +ENTRYPOINT ["/tini", "--"] \ No newline at end of file -- cgit