From 649f49e00080e2317617e19c76450eeb2af491f7 Mon Sep 17 00:00:00 2001 From: deadprogram Date: Sat, 25 Nov 2023 18:35:38 +0100 Subject: [PATCH] docker: remove lists after update to reduce image size Signed-off-by: deadprogram --- Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ad3b586d..cc9e258a 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