diff --git a/1.22/alpine3.19/Dockerfile b/1.22/alpine3.19/Dockerfile index fae06bf5..d7b85666 100644 --- a/1.22/alpine3.19/Dockerfile +++ b/1.22/alpine3.19/Dockerfile @@ -12,7 +12,7 @@ ENV GOLANG_VERSION 1.22.6 RUN set -eux; \ now="$(date '+%s')"; \ - apk add --no-cache --virtual .fetch-deps \ + apk add --no-cache --virtual .fetch-deps=0 \ ca-certificates \ gnupg \ # busybox's "tar" doesn't handle directory mtime correctly, so our SOURCE_DATE_EPOCH lookup doesn't work (the mtime of "/usr/local/go" always ends up being the extraction timestamp) diff --git a/1.22/alpine3.20/Dockerfile b/1.22/alpine3.20/Dockerfile index 735face7..7f0ae983 100644 --- a/1.22/alpine3.20/Dockerfile +++ b/1.22/alpine3.20/Dockerfile @@ -12,7 +12,7 @@ ENV GOLANG_VERSION 1.22.6 RUN set -eux; \ now="$(date '+%s')"; \ - apk add --no-cache --virtual .fetch-deps \ + apk add --no-cache --virtual .fetch-deps=0 \ ca-certificates \ gnupg \ # busybox's "tar" doesn't handle directory mtime correctly, so our SOURCE_DATE_EPOCH lookup doesn't work (the mtime of "/usr/local/go" always ends up being the extraction timestamp) diff --git a/1.22/bookworm/Dockerfile b/1.22/bookworm/Dockerfile index 2d159279..c448c2c9 100644 --- a/1.22/bookworm/Dockerfile +++ b/1.22/bookworm/Dockerfile @@ -114,7 +114,9 @@ RUN set -eux; \ make \ pkg-config \ ; \ - rm -rf /var/lib/apt/lists/* + rm -rf /var/lib/apt/lists/* ; \ +# clean up for reproducibility + rm -rf /var/log/* /var/cache/ldconfig/aux-cache ENV GOLANG_VERSION 1.22.6 diff --git a/1.22/bullseye/Dockerfile b/1.22/bullseye/Dockerfile index c0ed1cf3..4edd8cb1 100644 --- a/1.22/bullseye/Dockerfile +++ b/1.22/bullseye/Dockerfile @@ -114,7 +114,9 @@ RUN set -eux; \ make \ pkg-config \ ; \ - rm -rf /var/lib/apt/lists/* + rm -rf /var/lib/apt/lists/* ; \ +# clean up for reproducibility + rm -rf /var/log/* /var/cache/ldconfig/aux-cache ENV GOLANG_VERSION 1.22.6 diff --git a/1.23/alpine3.19/Dockerfile b/1.23/alpine3.19/Dockerfile index 593568af..a871ebe7 100644 --- a/1.23/alpine3.19/Dockerfile +++ b/1.23/alpine3.19/Dockerfile @@ -12,7 +12,7 @@ ENV GOLANG_VERSION 1.23.0 RUN set -eux; \ now="$(date '+%s')"; \ - apk add --no-cache --virtual .fetch-deps \ + apk add --no-cache --virtual .fetch-deps=0 \ ca-certificates \ gnupg \ # busybox's "tar" doesn't handle directory mtime correctly, so our SOURCE_DATE_EPOCH lookup doesn't work (the mtime of "/usr/local/go" always ends up being the extraction timestamp) diff --git a/1.23/alpine3.20/Dockerfile b/1.23/alpine3.20/Dockerfile index b5a1dc0a..7b4bf495 100644 --- a/1.23/alpine3.20/Dockerfile +++ b/1.23/alpine3.20/Dockerfile @@ -12,7 +12,7 @@ ENV GOLANG_VERSION 1.23.0 RUN set -eux; \ now="$(date '+%s')"; \ - apk add --no-cache --virtual .fetch-deps \ + apk add --no-cache --virtual .fetch-deps=0 \ ca-certificates \ gnupg \ # busybox's "tar" doesn't handle directory mtime correctly, so our SOURCE_DATE_EPOCH lookup doesn't work (the mtime of "/usr/local/go" always ends up being the extraction timestamp) diff --git a/1.23/bookworm/Dockerfile b/1.23/bookworm/Dockerfile index aa509652..d52de4e3 100644 --- a/1.23/bookworm/Dockerfile +++ b/1.23/bookworm/Dockerfile @@ -114,7 +114,9 @@ RUN set -eux; \ make \ pkg-config \ ; \ - rm -rf /var/lib/apt/lists/* + rm -rf /var/lib/apt/lists/* ; \ +# clean up for reproducibility + rm -rf /var/log/* /var/cache/ldconfig/aux-cache ENV GOLANG_VERSION 1.23.0 diff --git a/1.23/bullseye/Dockerfile b/1.23/bullseye/Dockerfile index 50cb670d..82d86359 100644 --- a/1.23/bullseye/Dockerfile +++ b/1.23/bullseye/Dockerfile @@ -114,7 +114,9 @@ RUN set -eux; \ make \ pkg-config \ ; \ - rm -rf /var/lib/apt/lists/* + rm -rf /var/lib/apt/lists/* ; \ +# clean up for reproducibility + rm -rf /var/log/* /var/cache/ldconfig/aux-cache ENV GOLANG_VERSION 1.23.0 diff --git a/Dockerfile-linux.template b/Dockerfile-linux.template index 9c2fb247..9de5bba9 100644 --- a/Dockerfile-linux.template +++ b/Dockerfile-linux.template @@ -53,7 +53,7 @@ ENV GOLANG_VERSION {{ .version }} RUN set -eux; \ now="$(date '+%s')"; \ {{ if is_alpine then ( -}} - apk add --no-cache --virtual .fetch-deps \ + apk add --no-cache --virtual .fetch-deps=0 \ ca-certificates \ gnupg \ # busybox's "tar" doesn't handle directory mtime correctly, so our SOURCE_DATE_EPOCH lookup doesn't work (the mtime of "/usr/local/go" always ends up being the extraction timestamp) @@ -163,7 +163,9 @@ RUN set -eux; \ make \ pkg-config \ ; \ - rm -rf /var/lib/apt/lists/* + rm -rf /var/lib/apt/lists/* ; \ +# clean up for reproducibility + rm -rf /var/log/* /var/cache/ldconfig/aux-cache {{ ) end -}} ENV GOLANG_VERSION {{ .version }}