diff options
author | Nick Schonning <nschonni@gmail.com> | 2023-02-12 22:57:51 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-13 04:57:51 +0100 |
commit | a1c0573bc6f4e4778c10f1d08f0bc35260d620ed (patch) | |
tree | 6d0a2a3d224f557f3259c3e3a08ee3b3e1afc981 /Dockerfile | |
parent | 0c9d455ea5540e854c2d879cd1df015ea493f622 (diff) |
Yarn cache cleanup right after install in Docker (#23557)
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile index ce7f4d7186d..35c7ae44104 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,7 +37,8 @@ RUN apt-get update && \ bundle config set --local without 'development test' && \ bundle config set silence_root_warning true && \ bundle install -j"$(nproc)" && \ - yarn install --pure-lockfile --network-timeout 600000 + yarn install --pure-lockfile --network-timeout 600000 && \ + yarn cache clean FROM node:${NODE_VERSION} @@ -91,8 +92,7 @@ USER mastodon WORKDIR /opt/mastodon # Precompile assets -RUN OTP_SECRET=precompile_placeholder SECRET_KEY_BASE=precompile_placeholder rails assets:precompile && \ - yarn cache clean +RUN OTP_SECRET=precompile_placeholder SECRET_KEY_BASE=precompile_placeholder rails assets:precompile # Set the work dir and the container entry point ENTRYPOINT ["/usr/bin/tini", "--"] |