Skip to content

Commit 44134a2

Browse files
DEV: remove bundle cache (#852)
On the current image this removes ~78MB from the layer Uncompressed image sizes: before: 3.3GB after: 3.23GB
1 parent cfe8aa0 commit 44134a2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

image/base/release.Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ RUN cd /var/www/discourse &&\
1212
sudo -u discourse bundle install --jobs $(($(nproc) - 1)) &&\
1313
sudo -u discourse yarn install --frozen-lockfile &&\
1414
sudo -u discourse yarn cache clean &&\
15+
find /var/www/discourse/vendor/bundle -name cache -not -path '*/gems/*' -type d -exec rm -rf {} + &&\
1516
find /var/www/discourse/vendor/bundle -name tmp -type d -exec rm -rf {} +

0 commit comments

Comments
 (0)