We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7986954 commit 90d69cfCopy full SHA for 90d69cf
Dockerfile
@@ -19,11 +19,13 @@ COPY cmd/ cmd/
19
COPY pkg/ pkg/
20
21
# Build the ENI Controller with optimizations for size
22
-RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GOTOOLCHAIN=${GOTOOLCHAIN} \
+# Use the TARGETARCH build arg to support multi-architecture builds
23
+ARG TARGETARCH=amd64
24
+RUN CGO_ENABLED=0 GOOS=linux GOARCH=${TARGETARCH} GOTOOLCHAIN=${GOTOOLCHAIN} \
25
go build -a -ldflags="-s -w" -trimpath -o manager cmd/main.go
26
27
# Build the ENI Manager with optimizations for size
28
29
go build -a -ldflags="-s -w" -trimpath -o eni-manager cmd/eni-manager/main.go
30
31
# Use UPX to compress the binaries
0 commit comments