From da28101ef2d8f92c66983fbaa1248cd6301d4251 Mon Sep 17 00:00:00 2001 From: minpeter Date: Wed, 13 Mar 2024 12:58:57 +0900 Subject: [PATCH] Update Dockerfile to support multi-platform builds --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7d827e0..95348bb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,7 @@ WORKDIR /app RUN go build -o /bin/app . # GOPATH for scratch images is / -FROM scratch +FROM --platform=$BUILDPLATFORM scratch COPY --from=builder /bin/app /app COPY ./templates /templates EXPOSE 10000