improving dockerfile
This commit is contained in:
@@ -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=""
|
||||
|
Reference in New Issue
Block a user