From cd07570ec3aa78a13f440248579978e3a145760f Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Sun, 27 Aug 2023 15:11:28 +0200 Subject: [PATCH] Mulitarch dockerfile fix --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index dc013cf..adedbe9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,9 @@ FROM --platform=$BUILDPLATFORM golang:1.21-alpine as build ADD . /app WORKDIR /app +ARG TARGETARCH +ARG TARGETOS + RUN apk add --no-cache make ca-certificates RUN make build BUILD_ARCH="$TARGETARCH" BUILD_OS="$TARGETOS"