diff options
author | deadprogram <[email protected]> | 2023-11-25 18:35:38 +0100 |
---|---|---|
committer | Ron Evans <[email protected]> | 2023-11-28 19:52:43 +0100 |
commit | 649f49e00080e2317617e19c76450eeb2af491f7 (patch) | |
tree | 44aad2e6e8505663d9ce7d6ab93fe6dcf3ab1a9d | |
parent | 3bcd4dc3e08da117b244ef60fa4ff6dca1e4f163 (diff) | |
download | tinygo-649f49e00080e2317617e19c76450eeb2af491f7.tar.gz tinygo-649f49e00080e2317617e19c76450eeb2af491f7.zip |
docker: remove lists after update to reduce image size
Signed-off-by: deadprogram <[email protected]>
-rw-r--r-- | Dockerfile | 7 |
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 |