Mulitarch dockerfile fix

This commit is contained in:
Djeeberjr 2023-08-27 15:11:28 +02:00
parent 5de06709ab
commit cd07570ec3

View File

@ -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"