unify alpine version

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

View File

@@ -1,4 +1,4 @@
FROM alpine:latest AS hypervisor FROM alpine:latest-stable AS hypervisor
ADD ./scripts/setup-hypervisor.sh /setup.sh ADD ./scripts/setup-hypervisor.sh /setup.sh
# Download cloud hypervisor # Download cloud hypervisor
RUN apk update && apk add bash curl jq tini linux-virt && sh /setup.sh && rm /setup.sh && mkdir /app RUN apk update && apk add bash curl jq tini linux-virt && sh /setup.sh && rm /setup.sh && mkdir /app

View File

@@ -3,5 +3,4 @@ iface lo inet loopback
auto eth0 auto eth0
iface eth0 inet dhcp iface eth0 inet dhcp
pre-up modprobe af_packet
post-up ip route del default || true; ip route add default via GATEWAY_ADDRESS post-up ip route del default || true; ip route add default via GATEWAY_ADDRESS

View File

@@ -10,7 +10,7 @@ RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH \
CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH \ CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH \
go build -o /build/auth_server ./util/ go build -o /build/auth_server ./util/
FROM alpine:latest AS rootfs-builder FROM alpine:latest-stable AS rootfs-builder
ENV CLOUD_CONFIG_REPO="https://git.sfclub.cc/cloud/bearnet" ENV CLOUD_CONFIG_REPO="https://git.sfclub.cc/cloud/bearnet"
ENV CLOUD_CONFIG_REVISION="wish" ENV CLOUD_CONFIG_REVISION="wish"
ENV CLOUD_GATEWAY_ADDRESS="10.0.0.119" ENV CLOUD_GATEWAY_ADDRESS="10.0.0.119"