DEV: remove bundle cache (#852)

On the current image this removes ~78MB from the layer

Uncompressed image sizes:
before: 3.3GB
after: 3.23GB
This commit is contained in:
Jeff Wong 2024-08-30 18:05:34 -07:00 committed by GitHub
parent cfe8aa0df0
commit 44134a21bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -12,4 +12,5 @@ RUN cd /var/www/discourse &&\
sudo -u discourse bundle install --jobs $(($(nproc) - 1)) &&\
sudo -u discourse yarn install --frozen-lockfile &&\
sudo -u discourse yarn cache clean &&\
find /var/www/discourse/vendor/bundle -name cache -not -path '*/gems/*' -type d -exec rm -rf {} + &&\
find /var/www/discourse/vendor/bundle -name tmp -type d -exec rm -rf {} +