This repository has been archived on 2024-07-26. You can view files and clone it, but cannot push or open issues or pull requests.
drone-kaniko/Dockerfile
2018-11-23 09:03:11 +01:00

21 lines
675 B
Docker

# TODO use the original image, but currently this is a blocker:
# https://github.com/GoogleContainerTools/kaniko/pull/459
FROM banzaicloud/kaniko:latest AS kaniko
# FROM gcr.io/kaniko-project/executor:v0.6.0 AS kaniko
FROM alpine:3.8
# clone the official kaniko container into this one, env vars needs to be re-set
COPY --from=kaniko / /
ENV HOME /root
ENV USER /root
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 --update --no-cache jq
# add the wrapper which acts as a drone plugin
COPY plugin.sh /usr/bin/
ENTRYPOINT [ "/usr/bin/plugin.sh" ]