improving dockerfile
This commit is contained in:
@@ -4,9 +4,10 @@ WORKDIR /app
|
|||||||
COPY . .
|
COPY . .
|
||||||
RUN go build -o haven-notify main.go
|
RUN go build -o haven-notify main.go
|
||||||
|
|
||||||
# Use a minimal image for running
|
# Use Alpine for running, with CA certificates for TLS
|
||||||
FROM busybox:latest
|
FROM alpine:latest
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
RUN apk --no-cache add ca-certificates
|
||||||
COPY --from=builder /app/haven-notify .
|
COPY --from=builder /app/haven-notify .
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
ENV WEBHOOK_URL=""
|
ENV WEBHOOK_URL=""
|
||||||
|
Reference in New Issue
Block a user