From cedc435df016885468eba634ed551132ac8cb75d Mon Sep 17 00:00:00 2001 From: Jose Henrique Date: Fri, 22 Aug 2025 22:35:50 -0300 Subject: [PATCH] maybe this gon work --- haven-notify/Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/haven-notify/Dockerfile b/haven-notify/Dockerfile index d623779..a2a1f8d 100644 --- a/haven-notify/Dockerfile +++ b/haven-notify/Dockerfile @@ -1,9 +1,13 @@ # Start from the official Golang image for building -FROM golang:1.22-alpine AS builder +FROM --platform=$BUILDPLATFORM golang:1.22-alpine AS builder + +ARG TARGETARCH +ARG TARGETOS + WORKDIR /app COPY . . # Build statically for Linux -RUN CGO_ENABLED=0 go build -o haven-notify main.go +RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o haven-notify main.go # Use Alpine for running, with CA certificates for TLS FROM alpine:latest