Files
server-scripts/haven-notify/Dockerfile
Jose Henrique b75240c693
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 4s
Haven Notify Build and Deploy / Build Haven Notify Image (amd64) (push) Successful in 16s
Haven Notify Build and Deploy / Deploy Haven Notify (push) Successful in 11s
trying to fix arch :c
2025-08-16 22:51:35 -03:00

17 lines
492 B
Docker

# Start from the official Golang image for building
ARG TARGETARCH=amd64
FROM golang:1.25 AS builder
WORKDIR /app
COPY . .
# 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
WORKDIR /app
RUN apk --no-cache add ca-certificates
COPY --from=builder /app/haven-notify .
EXPOSE 8080
ENV WEBHOOK_URL=""
ENTRYPOINT ["/app/haven-notify"]