drone-kaniko/Dockerfile

18 lines
510 B
Docker
Raw Normal View History

2018-12-11 22:11:40 +00:00
FROM gcr.io/kaniko-project/executor:v0.7.0 AS kaniko
2018-11-21 14:45:09 +00:00
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
2018-11-23 08:03:11 +00:00
RUN apk add --update --no-cache jq
2018-11-21 14:45:09 +00:00
# add the wrapper which acts as a drone plugin
COPY plugin.sh /usr/bin/
ENTRYPOINT [ "/usr/bin/plugin.sh" ]