From 738ff40a5e8ced213c2c245e90d3dc123f9c6434 Mon Sep 17 00:00:00 2001 From: Antonio Cheong Date: Fri, 1 Sep 2023 13:54:37 +0800 Subject: [PATCH] Add platform flag in Dockerfile #18 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 552a895..ebec827 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,7 @@ COPY . . RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -o /obsidian-sync ./cmd/obsidian-sync/ # Deploy the application binary into a lean image -FROM gcr.io/distroless/base-debian11 AS build-release-stage +FROM --platform=${TARGETPLATFORM} gcr.io/distroless/base-debian11 AS build-release-stage WORKDIR /