This commit is contained in:
@@ -5,8 +5,8 @@ COPY infra/webhook/ .
|
||||
RUN go mod download && \
|
||||
CGO_ENABLED=0 GOOS=linux go build -o webhook .
|
||||
|
||||
FROM alpine:3.19
|
||||
RUN apk add --no-cache docker-cli ca-certificates
|
||||
FROM scratch
|
||||
COPY --from=builder /app/webhook /webhook
|
||||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||
EXPOSE 9001
|
||||
ENTRYPOINT ["/webhook"]
|
||||
Reference in New Issue
Block a user