mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 10:15:22 +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
|
||||
FROM alpine
|
||||
# install dependencies
|
||||
RUN apk add git openssh
|
||||
COPY --from=builder /build/kustomize /app/
|
||||
RUN apk add --no-cache git openssh
|
||||
COPY --from=builder /build/kustomize/kustomize /app/
|
||||
WORKDIR /app
|
||||
ENV PATH "$PATH:/app"
|
||||
ENTRYPOINT ["/app/kustomize"]
|
||||
|
||||
Reference in New Issue
Block a user