Skip to content

Commit

Permalink
Remove ARG, use TARGETPLATFORM
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyo committed Mar 12, 2024
1 parent fb45095 commit 8802851
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

# Build the application
FROM golang:1.20 AS build-stage
ARG TARGETARCH

WORKDIR /app

Expand All @@ -11,7 +10,7 @@ RUN go mod download

COPY *.go ./

ENV CGO_ENABLED=0 GOOS=linux GOARCH=$TARGETPLATFORM GO111MODULE=on
ENV CGO_ENABLED=0 GOOS=${TARGETPLATFORM} GOARCH=${TARGETARCH} GO111MODULE=on

RUN go build -o /bin/sentry-kubernetes

Expand Down

0 comments on commit 8802851

Please sign in to comment.