fix: use implicit values for GOOS and GOARCH

This commit is contained in:
Sebastian Rühl
2023-02-15 11:36:24 +01:00
committed by GitHub
parent 99579fc4e9
commit 672ec7a4c4

View File

@@ -39,7 +39,7 @@ COPY . .
COPY --from=frontend ["/static/build", "ui/build"]
# Set necessary environmet variables needed for the image and build the server.
ENV CGO_ENABLED=0 GOOS=linux GOARCH=amd64
ENV CGO_ENABLED=0
# Run go build (with ldflags to reduce binary size).
RUN go build -ldflags="-s -w" -o asynqmon ./cmd/asynqmon