mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-11 11:02:55 +01:00
This is so stupid
This commit is contained in:
parent
c8d9adfc82
commit
699f4fed0f
1 changed files with 8 additions and 5 deletions
|
|
@ -8,18 +8,21 @@ FROM gcr.io/go-containerregistry/crane as crane
|
|||
|
||||
FROM alpine/git
|
||||
|
||||
# See https://github.com/GoogleContainerTools/kaniko/blob/master/deploy/Dockerfile#L65-L70
|
||||
COPY --from=kaniko-src /kaniko-dist/ /kaniko/
|
||||
COPY --from=kaniko-src /etc/nsswitch.conf /etc/nsswitch.conf
|
||||
|
||||
ENV HOME /root
|
||||
ENV USER root
|
||||
|
||||
# See https://github.com/GoogleContainerTools/kaniko/blob/master/deploy/Dockerfile#L65-L70
|
||||
COPY --from=kaniko-src /kaniko-dist/ /kaniko-dist
|
||||
COPY --from=kaniko-src /etc/nsswitch.conf /etc/nsswitch.conf
|
||||
|
||||
RUN apk add --no-cache jq && \
|
||||
cp -r /kaniko-dist /kaniko
|
||||
|
||||
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
|
||||
|
||||
RUN apk add --no-cache jq
|
||||
COPY --from=crane /ko-app/crane /usr/local/bin/crane
|
||||
|
||||
# Copy entry point
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue