improving dockerfile
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

This commit is contained in:
2025-08-16 22:48:14 -03:00
parent 89f0afe334
commit 9ab518e149

View File

@@ -4,9 +4,10 @@ WORKDIR /app
COPY . .
RUN go build -o haven-notify main.go
# Use a minimal image for running
FROM busybox:latest
# 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=""