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 f1f8617 commit b6e69efCopy full SHA for b6e69ef
Dockerfile
@@ -1,11 +1,12 @@
1
# builder
2
-FROM golang:1.22 AS builder
+FROM --platform=$BUILDPLATFORM golang:1.22 AS builder
3
4
WORKDIR /app
5
COPY go.mod go.sum ./
6
RUN go mod download
7
COPY . .
8
-RUN go build -o mongodb-index-advisor .
+ARG TARGETOS TARGETARCH
9
+RUN GOOS=$TARGETOS GOARCH=$TARGETARCH go build -o mongodb-index-advisor .
10
RUN ls -lh /app/mongodb-index-advisor
11
12
# runner
0 commit comments