maybe this gon work
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 6s
Haven Notify Build and Deploy / Build Haven Notify Image (push) Successful in 32s
Haven Notify Build and Deploy / Deploy Haven Notify (internal) (push) Successful in 22s

This commit is contained in:
2025-08-22 22:35:50 -03:00
parent aa7a9b8548
commit cedc435df0

View File

@@ -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