chore: update Dockerfile to specify platform for Alpine base image

This commit is contained in:
sunbk201 2024-11-14 01:07:36 +08:00
parent ca45a4547e
commit aa76becebe

View File

@ -11,7 +11,7 @@ ARG TARGETARCH
RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -trimpath -ldflags="-s -w" -o ua3f
FROM alpine
FROM --platform=$BUILDPLATFORM alpine
WORKDIR /app