From 8d7215d567e1be9da446eca54f232c857078d1e2 Mon Sep 17 00:00:00 2001 From: YE Feng Date: Tue, 10 Dec 2024 10:09:15 +0800 Subject: [PATCH] chore: Specify Alpine version in Dockerfiles --- build/virt-controller/Dockerfile | 4 ++-- build/virt-daemon/Dockerfile | 4 ++-- build/virt-prerunner/Dockerfile | 4 ++-- build/virtink-container-disk-base/Dockerfile | 2 +- build/virtink-container-rootfs-base/Dockerfile | 2 +- build/virtink-kernel-base/Dockerfile | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/build/virt-controller/Dockerfile b/build/virt-controller/Dockerfile index 42b93b7..8a11239 100644 --- a/build/virt-controller/Dockerfile +++ b/build/virt-controller/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.23.4-alpine AS builder +FROM golang:1.23.4-alpine3.21 AS builder WORKDIR /workspace @@ -10,7 +10,7 @@ COPY cmd/ cmd/ COPY pkg/ pkg/ RUN --mount=type=cache,target=/root/.cache/go-build CGO_ENABLED=0 go build -a cmd/virt-controller/main.go -FROM alpine +FROM alpine:3.21.0 ARG PRERUNNER_IMAGE ENV PRERUNNER_IMAGE=$PRERUNNER_IMAGE diff --git a/build/virt-daemon/Dockerfile b/build/virt-daemon/Dockerfile index f4d30df..3709c9e 100644 --- a/build/virt-daemon/Dockerfile +++ b/build/virt-daemon/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.23.4-alpine AS builder +FROM golang:1.23.4-alpine3.21 AS builder WORKDIR /workspace @@ -10,7 +10,7 @@ COPY cmd/ cmd/ COPY pkg/ pkg/ RUN --mount=type=cache,target=/root/.cache/go-build CGO_ENABLED=0 go build -a cmd/virt-daemon/main.go -FROM alpine +FROM alpine:3.21.0 COPY --from=builder /workspace/main /usr/bin/virt-daemon ENTRYPOINT ["virt-daemon"] diff --git a/build/virt-prerunner/Dockerfile b/build/virt-prerunner/Dockerfile index 44357ee..a5faf96 100644 --- a/build/virt-prerunner/Dockerfile +++ b/build/virt-prerunner/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.23.4-alpine AS builder +FROM golang:1.23.4-alpine3.21 AS builder RUN apk add --no-cache gcc musl-dev @@ -12,7 +12,7 @@ COPY cmd/ cmd/ COPY pkg/ pkg/ RUN --mount=type=cache,target=/root/.cache/go-build go build -a cmd/virt-prerunner/main.go -FROM alpine +FROM alpine:3.21.0 RUN apk add --no-cache curl screen dnsmasq cdrkit iptables iproute2 qemu-virtiofsd dpkg util-linux s6-overlay nmap-ncat diff --git a/build/virtink-container-disk-base/Dockerfile b/build/virtink-container-disk-base/Dockerfile index b6a188b..dcb0cae 100644 --- a/build/virtink-container-disk-base/Dockerfile +++ b/build/virtink-container-disk-base/Dockerfile @@ -1,4 +1,4 @@ -FROM alpine +FROM alpine:3.21.0 RUN apk add --no-cache qemu-img diff --git a/build/virtink-container-rootfs-base/Dockerfile b/build/virtink-container-rootfs-base/Dockerfile index f4416bd..2638ee6 100644 --- a/build/virtink-container-rootfs-base/Dockerfile +++ b/build/virtink-container-rootfs-base/Dockerfile @@ -1,4 +1,4 @@ -FROM alpine +FROM alpine:3.21.0 RUN apk add --no-cache e2fsprogs diff --git a/build/virtink-kernel-base/Dockerfile b/build/virtink-kernel-base/Dockerfile index e28ce5e..6b59137 100644 --- a/build/virtink-kernel-base/Dockerfile +++ b/build/virtink-kernel-base/Dockerfile @@ -1,4 +1,4 @@ -FROM alpine +FROM alpine:3.21.0 ADD build/virtink-kernel-base/entrypoint.sh /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"]