Skip to content

Commit

Permalink
chore: Specify Alpine version in Dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
fengye87 committed Dec 10, 2024
1 parent 0a54841 commit 8d7215d
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions build/virt-controller/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.23.4-alpine AS builder
FROM golang:1.23.4-alpine3.21 AS builder

WORKDIR /workspace

Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions build/virt-daemon/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.23.4-alpine AS builder
FROM golang:1.23.4-alpine3.21 AS builder

WORKDIR /workspace

Expand All @@ -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"]
4 changes: 2 additions & 2 deletions build/virt-prerunner/Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion build/virtink-container-disk-base/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine
FROM alpine:3.21.0

RUN apk add --no-cache qemu-img

Expand Down
2 changes: 1 addition & 1 deletion build/virtink-container-rootfs-base/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine
FROM alpine:3.21.0

RUN apk add --no-cache e2fsprogs

Expand Down
2 changes: 1 addition & 1 deletion build/virtink-kernel-base/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine
FROM alpine:3.21.0

ADD build/virtink-kernel-base/entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

0 comments on commit 8d7215d

Please sign in to comment.