Add crane and jq to image

This commit is contained in:
Lukas Eipert 2022-02-21 16:33:57 +01:00
parent 125b2df0ea
commit ce46c57389
2 changed files with 32 additions and 1 deletions

View file

@ -4,6 +4,8 @@ FROM gcr.io/kaniko-project/executor:v1.7.0-debug AS kaniko-src
# https://github.com/GoogleContainerTools/kaniko/issues/960#issuecomment-573160390
RUN cp -r /kaniko /kaniko-dist
FROM gcr.io/go-containerregistry/crane as crane
FROM alpine/git
# See https://github.com/GoogleContainerTools/kaniko/blob/master/deploy/Dockerfile#L65-L70
@ -17,4 +19,10 @@ ENV SSL_CERT_DIR=/kaniko/ssl/certs
ENV DOCKER_CONFIG /kaniko/.docker/
ENV DOCKER_CREDENTIAL_GCR_CONFIG /kaniko/.config/gcloud/docker_credential_gcr_config.json
ENTRYPOINT ["/kaniko/executor"]
RUN apk add --no-cache jq
COPY --from=crane /ko-app/crane /usr/local/bin/crane
# Copy entry point
COPY entry_point.sh /root/entry_point.sh
ENTRYPOINT ["/root/entry_point.sh"]