Skip to content

Commit 7c18fce

Browse files
DEV: remove oxipng archive in layer (#846)
* DEV: remove oxipng archive in layer Saves ~52MB for the layer * DEV: Remove nginx archives Remove another 1.2MB from image
1 parent 1740b52 commit 7c18fce

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

image/base/install-nginx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ mv /usr/share/nginx/sbin/nginx /usr/sbin
3131

3232
cd /
3333
rm -fr /tmp/nginx
34+
rm -f /tmp/nginx-$VERSION.tar.gz
35+
rm -f /tmp/nginx-$VERSION.tar.gz.asc
3436
rm -fr /tmp/libbrotli
3537
rm -fr /tmp/ngx_brotli
3638
rm -fr /etc/nginx/modules-enabled/*

image/base/install-oxipng

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ cd ${OXIPNG_DIR}
2121
CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse /usr/local/cargo/bin/cargo build --release
2222
cp target/release/oxipng /usr/local/bin
2323

24-
cd / && rm -fr /tmp/${OXIPNG_DIR}
24+
cd / && rm -fr /tmp/${OXIPNG_DIR} && rm -f /tmp/${OXIPNG_ARCHIVE}

0 commit comments

Comments
 (0)