mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 18:25:26 +00:00
feat: Reduce docker image size
This commit is contained in:
@@ -14,8 +14,8 @@ RUN CGO_ENABLED=0 GO111MODULE=on go build \
|
|||||||
# only copy binary
|
# only copy binary
|
||||||
FROM alpine
|
FROM alpine
|
||||||
# install dependencies
|
# install dependencies
|
||||||
RUN apk add git openssh
|
RUN apk add --no-cache git openssh
|
||||||
COPY --from=builder /build/kustomize /app/
|
COPY --from=builder /build/kustomize/kustomize /app/
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ENV PATH "$PATH:/app"
|
ENV PATH "$PATH:/app"
|
||||||
ENTRYPOINT ["/app/kustomize"]
|
ENTRYPOINT ["/app/kustomize"]
|
||||||
|
|||||||
Reference in New Issue
Block a user