From 8e477df9478279c7a63b2ae0835b85cb6f3a4dc2 Mon Sep 17 00:00:00 2001 From: Krzysztof Romanowski Date: Mon, 23 Oct 2023 23:06:48 +0200 Subject: [PATCH] Changes --- Dockerfile | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5537ccf..2f31077 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,9 @@ -FROM --platform=$BUILDPLATFORM golang:1.21.3 AS builder -ARG TARGETPLATFORM -ARG BUILDPLATFORM -ARG TARGETARCH -RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM" +FROM golang:1.21.3 AS builder WORKDIR /data COPY . /data -RUN GOOS=linux GOARCH=$TARGETARCH go build -o lights-api +RUN GOOS=linux GOARCH=amd64 go build -o lights-api -FROM scratch +FROM ubuntu:mantic COPY --from=builder /data/lights-api ./ CMD ["./lights-api"]