Standardize Alpine base image format and version across all Dockerfiles

- Update all Dockerfiles to use `alpine:3.21.0` with SHA256 checksum
- Ensure consistent image versioning, enhanced security, and
  reproducibility by explicitly specifying the digest.

cc #2436 #2516
This commit is contained in:
Peter Dave Hello 2024-12-22 18:10:49 +08:00
parent 988a877199
commit b0881cdb4c
3 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
# Main stage
FROM alpine:3.20.3@sha256:1e42bbe2508154c9126d48c2b8a75420c3544343bf86fd041fb7527e017a4b4a
FROM alpine:3.21.0@sha256:21dc6063fd678b478f57c0e13f47560d0ea4eeba26dfc947b2a4f81f686b9f45
# Copy necessary files
COPY scripts /scripts

View File

@ -12,7 +12,7 @@ RUN DOCKER_ENABLE_SECURITY=true \
./gradlew clean build
# Main stage
FROM alpine:3.20.3
FROM alpine:3.21.0@sha256:21dc6063fd678b478f57c0e13f47560d0ea4eeba26dfc947b2a4f81f686b9f45
# Copy necessary files
COPY scripts /scripts

View File

@ -1,5 +1,5 @@
# use alpine
FROM alpine:3.21.0
FROM alpine:3.21.0@sha256:21dc6063fd678b478f57c0e13f47560d0ea4eeba26dfc947b2a4f81f686b9f45
ARG VERSION_TAG