From 3d3ead9d9e9cf606e6d886b4e2fdd54e447d3532 Mon Sep 17 00:00:00 2001 From: Jakob Jensen Date: Tue, 15 Oct 2024 23:05:29 +0200 Subject: [PATCH] Remove unknown arch from containerized builds --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4a7f150..cf6a636 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,9 @@ -FROM golang:alpine AS build +FROM --platform=$BUILDPLATFORM golang:alpine AS build COPY . . ARG VERSION RUN go build -trimpath -o /app/ \ -ldflags "-s -w -X github.com/codereaper/lane/cmd.versionString=$VERSION" -FROM scratch +FROM --platform=$BUILDPLATFORM scratch COPY --from=build /app/lane / ENTRYPOINT [ "/lane" ]