mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-08 17:42:56 +01:00
18 lines
563 B
Docker
18 lines
563 B
Docker
FROM gcr.io/kaniko-project/executor:v1.14.0-debug AS kaniko
|
|
|
|
FROM alpine/git
|
|
|
|
# See https://github.com/GoogleContainerTools/kaniko/blob/master/deploy/Dockerfile#L65-L70
|
|
COPY --from=kaniko /kaniko/ /kaniko/
|
|
COPY --from=kaniko /etc/nsswitch.conf /etc/nsswitch.conf
|
|
|
|
RUN apk --no-cache add curl jq skopeo
|
|
|
|
ENV HOME /root
|
|
ENV USER root
|
|
ENV PATH /usr/local/bin:/kaniko:$PATH
|
|
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"]
|