Files
server-scripts/haven-notify/Dockerfile
Jose Henrique 99e110afb3
Some checks failed
Check scripts syntax / check-scripts-syntax (push) Successful in 1m7s
Haven Notify Build and Deploy / Build Haven Notify Image (push) Failing after 13m14s
Haven Notify Build and Deploy / Deploy Haven Notify (internal) (push) Successful in 24s
removing arch from go build
2025-08-22 21:08:28 -03:00

16 lines
424 B
Docker

# Start from the official Golang image for building
FROM golang:1.22 AS builder
WORKDIR /app
COPY . .
# Build statically for Linux
RUN GOOS=linux 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"]