File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 22FROM golang:1.25-alpine3.22 AS build_deps
33ARG TARGETARCH
44
5- RUN apk add --no-cache git
5+ RUN apk add --no-cache git=2.49.1-r0
66
77WORKDIR /workspace
88ENV GO111MODULE=on
2525LABEL org.opencontainers.image.source="https://github.com/vadimkim/cert-manager-webhook-hetzner"
2626
2727# Install minimal runtime
28- RUN apk add --no-cache ca-certificates \
28+ RUN apk add --no-cache ca-certificates=20241121-r2 \
2929 && adduser -D -u 1000 appuser
3030USER appuser
3131
3232COPY --from=build /workspace/webhook /usr/local/bin/webhook
3333
3434ENTRYPOINT ["webhook" ]
35+
36+ # Add healthcheck (adjust endpoint/port if needed)
37+ HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
38+ CMD wget --no-verbose --tries=1 --spider http://localhost:8080/healthz || exit 1
You can’t perform that action at this time.
0 commit comments