diff --git a/Dockerfile b/Dockerfile index 56deee9..1304c13 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ # Build the application FROM golang:1.20 AS build-stage -ARG TARGETPLATFORM +ARG TARGETARCH WORKDIR /app @@ -11,7 +11,7 @@ RUN go mod download COPY *.go ./ -ENV CGO_ENABLED=0 GOOS=linux GOARCH=$TARGETPLATFORM GO111MODULE=on +ENV CGO_ENABLED=0 GOOS=linux GOARCH=${TARGETARCH} GO111MODULE=on RUN go build -o /bin/sentry-kubernetes