Files
server-scripts/haven-notify/Dockerfile
Jose Henrique 9ab518e149
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 2s
Haven Notify Build and Deploy / Build Haven Notify Image (amd64) (push) Successful in 24s
Haven Notify Build and Deploy / Deploy Haven Notify (push) Successful in 10s
improving dockerfile
2025-08-16 22:48:14 -03:00

15 lines
370 B
Docker

# Start from the official Golang image for building
FROM golang:1.25 AS builder
WORKDIR /app
COPY . .
RUN 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"]