Skip to content

Commit

Permalink
try TARGETARCH
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyo committed Mar 8, 2024
1 parent e4e4aac commit 4c4f0db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

WORKDIR /app

Expand All @@ -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

Expand Down

0 comments on commit 4c4f0db

Please sign in to comment.