Skip to content

Commit

Permalink
pass target platform
Browse files Browse the repository at this point in the history
to dockerfile
  • Loading branch information
loan-mgt committed May 13, 2024
1 parent 3f713e2 commit f577213
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
@@ -1,13 +1,12 @@
# Start from the official golang image
FROM golang:1.22-alpine AS builder

ARG GOARCH

# Set necessary environment variables
ENV GO111MODULE=on \
CGO_ENABLED=0 \
GOOS=linux \
GOARCH=$GOARCH
GOARCH=$TARGETPLATFORM

# Move to working directory /build
WORKDIR /build
Expand Down

0 comments on commit f577213

Please sign in to comment.