unify alpine version

This commit is contained in:
iceBear67
2026-06-22 13:58:03 +08:00
parent 54deda0210
commit 06a7b96fea
3 changed files with 3 additions and 4 deletions

View File

@@ -10,7 +10,7 @@ RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH \
CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH \
go build -o /build/auth_server ./util/
FROM alpine:latest AS rootfs-builder
FROM alpine:3.24 AS rootfs-builder
ENV CLOUD_CONFIG_REPO="https://git.sfclub.cc/cloud/bearnet"
ENV CLOUD_CONFIG_REVISION="wish"
ENV CLOUD_GATEWAY_ADDRESS="10.0.0.119"
@@ -23,7 +23,7 @@ COPY --from=bubble-builder /build/daemon /bin/bubble
COPY --from=bubble-builder /build/auth_server /bin/auth-server
RUN --security=insecure \
--mount=type=bind,from=host-modules,source=/,target=/lib/modules \
cd /kitchen && rm -f vm.raw && ./build-image.sh
cd /kitchen && rm -f vm.raw && ALPINE_BRANCH="3.24" ./build-image.sh
FROM scratch AS export
COPY --from=rootfs-builder /kitchen/vm.raw /vm.raw