From b75240c693c2cb0a9cb3a2e824da4164bbbc050a Mon Sep 17 00:00:00 2001 From: Jose Henrique Date: Sat, 16 Aug 2025 22:51:35 -0300 Subject: [PATCH] trying to fix arch :c --- haven-notify/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/haven-notify/Dockerfile b/haven-notify/Dockerfile index f2abf2b..60661db 100644 --- a/haven-notify/Dockerfile +++ b/haven-notify/Dockerfile @@ -1,8 +1,10 @@ # Start from the official Golang image for building +ARG TARGETARCH=amd64 FROM golang:1.25 AS builder WORKDIR /app COPY . . -RUN go build -o haven-notify main.go +# Build statically for Linux and selected architecture +RUN GOOS=linux GOARCH=${TARGETARCH} CGO_ENABLED=0 go build -o haven-notify main.go # Use Alpine for running, with CA certificates for TLS FROM alpine:latest