aboutsummaryrefslogtreecommitdiffhomepage
path: root/Dockerfile
diff options
context:
space:
mode:
authordeadprogram <[email protected]>2023-11-25 18:35:38 +0100
committerRon Evans <[email protected]>2023-11-28 19:52:43 +0100
commit649f49e00080e2317617e19c76450eeb2af491f7 (patch)
tree44aad2e6e8505663d9ce7d6ab93fe6dcf3ab1a9d /Dockerfile
parent3bcd4dc3e08da117b244ef60fa4ff6dca1e4f163 (diff)
downloadtinygo-649f49e00080e2317617e19c76450eeb2af491f7.tar.gz
tinygo-649f49e00080e2317617e19c76450eeb2af491f7.zip
docker: remove lists after update to reduce image size
Signed-off-by: deadprogram <[email protected]>
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index ad3b586d8..cc9e258a9 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -2,7 +2,12 @@
FROM golang:1.21 AS tinygo-llvm
RUN apt-get update && \
- apt-get install -y apt-utils make cmake clang-15 ninja-build
+ apt-get install -y apt-utils make cmake clang-15 ninja-build && \
+ rm -rf \
+ /var/lib/apt/lists/* \
+ /var/log/* \
+ /var/tmp/* \
+ /tmp/*
COPY ./Makefile /tinygo/Makefile