mirror of
https://github.com/cert-manager/webhook-example.git
synced 2026-03-16 18:02:51 +01:00
fix: remove git package install from docker image
This commit is contained in:
parent
b65f07ae47
commit
a36582be70
1 changed files with 2 additions and 2 deletions
|
|
@ -1,7 +1,5 @@
|
||||||
FROM golang:1.25.7 AS build
|
FROM golang:1.25.7 AS build
|
||||||
|
|
||||||
RUN apk add --no-cache git
|
|
||||||
|
|
||||||
WORKDIR /workspace
|
WORKDIR /workspace
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
@ -16,4 +14,6 @@ RUN apk add --no-cache ca-certificates
|
||||||
|
|
||||||
COPY --from=build /workspace/webhook /usr/local/bin/webhook
|
COPY --from=build /workspace/webhook /usr/local/bin/webhook
|
||||||
|
|
||||||
|
RUN chmod +x /usr/local/bin/webhook
|
||||||
|
|
||||||
ENTRYPOINT ["webhook"]
|
ENTRYPOINT ["webhook"]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue