From 8a64c7c9268879a88a64623226a53aaf4dd3af0d Mon Sep 17 00:00:00 2001 From: mappu Date: Sat, 19 Oct 2024 10:32:17 +1300 Subject: [PATCH] docker: clean apt cache after installing, for smaller images --- docker/linux64-go1.19-qt5.15-dynamic.Dockerfile | 3 ++- docker/win64-cross-go1.19-qt5.15-dynamic.Dockerfile | 3 ++- docker/win64-cross-go1.19-qt5.15-static.Dockerfile | 3 ++- docker/win64-cross-go1.23-qt5.15-dynamic.Dockerfile | 3 ++- docker/win64-cross-go1.23-qt5.15-static.Dockerfile | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/docker/linux64-go1.19-qt5.15-dynamic.Dockerfile b/docker/linux64-go1.19-qt5.15-dynamic.Dockerfile index 0d181b36..1d8dc0d6 100644 --- a/docker/linux64-go1.19-qt5.15-dynamic.Dockerfile +++ b/docker/linux64-go1.19-qt5.15-dynamic.Dockerfile @@ -1,4 +1,5 @@ FROM debian:bookworm RUN DEBIAN_FRONTEND=noninteractive apt-get update && \ - apt-get install -qyy golang-go qtbase5-dev + apt-get install -qyy golang-go qtbase5-dev && \ + apt-get clean diff --git a/docker/win64-cross-go1.19-qt5.15-dynamic.Dockerfile b/docker/win64-cross-go1.19-qt5.15-dynamic.Dockerfile index d0ddcbfa..70eafde7 100644 --- a/docker/win64-cross-go1.19-qt5.15-dynamic.Dockerfile +++ b/docker/win64-cross-go1.19-qt5.15-dynamic.Dockerfile @@ -1,7 +1,8 @@ FROM debian:bookworm RUN DEBIAN_FRONTEND=noninteractive apt-get update && \ - apt-get install -qyy gnupg2 golang-go ca-certificates + apt-get install -qyy gnupg2 golang-go ca-certificates && \ + apt-get clean RUN DEBIAN_FRONTEND=noninteractive \ echo "deb https://pkg.mxe.cc/repos/apt buster main" >/etc/apt/sources.list.d/mxeapt.list && \ diff --git a/docker/win64-cross-go1.19-qt5.15-static.Dockerfile b/docker/win64-cross-go1.19-qt5.15-static.Dockerfile index cb243431..285440f0 100644 --- a/docker/win64-cross-go1.19-qt5.15-static.Dockerfile +++ b/docker/win64-cross-go1.19-qt5.15-static.Dockerfile @@ -1,7 +1,8 @@ FROM debian:bookworm RUN DEBIAN_FRONTEND=noninteractive apt-get update && \ - apt-get install -qyy gnupg2 golang-go ca-certificates + apt-get install -qyy gnupg2 golang-go ca-certificates && \ + apt-get clean RUN DEBIAN_FRONTEND=noninteractive \ echo "deb https://pkg.mxe.cc/repos/apt buster main" >/etc/apt/sources.list.d/mxeapt.list && \ diff --git a/docker/win64-cross-go1.23-qt5.15-dynamic.Dockerfile b/docker/win64-cross-go1.23-qt5.15-dynamic.Dockerfile index 2d9c1f7a..fceab4dd 100644 --- a/docker/win64-cross-go1.23-qt5.15-dynamic.Dockerfile +++ b/docker/win64-cross-go1.23-qt5.15-dynamic.Dockerfile @@ -1,7 +1,8 @@ FROM golang:1.23-bookworm RUN DEBIAN_FRONTEND=noninteractive apt-get update && \ - apt-get install -qyy gnupg2 ca-certificates + apt-get install -qyy gnupg2 ca-certificates && \ + apt-get clean RUN DEBIAN_FRONTEND=noninteractive \ echo "deb https://pkg.mxe.cc/repos/apt buster main" >/etc/apt/sources.list.d/mxeapt.list && \ diff --git a/docker/win64-cross-go1.23-qt5.15-static.Dockerfile b/docker/win64-cross-go1.23-qt5.15-static.Dockerfile index f1f20aac..876973bd 100644 --- a/docker/win64-cross-go1.23-qt5.15-static.Dockerfile +++ b/docker/win64-cross-go1.23-qt5.15-static.Dockerfile @@ -1,7 +1,8 @@ FROM golang:1.23-bookworm RUN DEBIAN_FRONTEND=noninteractive apt-get update && \ - apt-get install -qyy gnupg2 ca-certificates + apt-get install -qyy gnupg2 ca-certificates && \ + apt-get clean RUN DEBIAN_FRONTEND=noninteractive \ echo "deb https://pkg.mxe.cc/repos/apt buster main" >/etc/apt/sources.list.d/mxeapt.list && \