We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
An updated Dockerfile could look like this:
Dockerfile
# Build stage FROM --platform=$BUILDPLATFORM golang:1.23-bookworm AS builder ARG TARGETOS ARG TARGETARCH ARG VERSION WORKDIR /app RUN mkdir build COPY . . RUN go mod download && \ CGO_ENABLED=0 \ GOOS=$TARGETOS \ GOARCH=$TARGETARCH \ go build \ -ldflags "-s -w" \ -trimpath \ -a \ -o build/player-router main.go # Final stage FROM --platform=$TARGETPLATFORM gcr.io/distroless/static-debian12:nonroot WORKDIR /app COPY --from=builder /app/build/player-router . USER nonroot:nonroot ENTRYPOINT ["/app/player-router"]
But I am unsure on how to get devspace to build amd64 and arm64 images.
devspace
amd64
arm64
The text was updated successfully, but these errors were encountered:
rcastley
carlmontanarisplunk
No branches or pull requests
An updated
Dockerfile
could look like this:But I am unsure on how to get
devspace
to buildamd64
andarm64
images.The text was updated successfully, but these errors were encountered: