Skip to content

Commit 4aed600

Browse files
Build and push docker image with many platforms
Signed-off-by: roman-kiselenko <roman.kiselenko.dev@gmail.com>
1 parent 7ee851e commit 4aed600

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ADD . ./
1010

1111
RUN GOOS=$TARGETOS GOARCH=$TARGETARCH go build -v -o /build/smolgit
1212

13-
FROM alpine/git:2.45.2 AS runner
13+
FROM --platform=$BUILDPLATFORM alpine/git:2.45.2 AS runner
1414

1515
COPY --from=builder /build/smolgit /usr/bin/smolgit
1616

0 commit comments

Comments
 (0)