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