Commit ccdf5832 authored by Konstantin Pavlov's avatar Konstantin Pavlov

kaniko: use stretch and install git.

parent c56fc705
Pipeline #3335 failed with stage
in 3 minutes and 48 seconds
......@@ -18,10 +18,11 @@ FROM golang:1.10
WORKDIR /go/src/github.com/GoogleContainerTools
RUN git clone https://github.com/GoogleContainerTools/kaniko && cd kaniko && make
FROM busybox:1.29.3
FROM debian:stretch-20181112-slim
COPY --from=0 /go/src/github.com/GoogleContainerTools/kaniko/out/executor /kaniko/executor
COPY --from=0 /go/src/github.com/GoogleContainerTools/kaniko/files/ca-certificates.crt /kaniko/ssl/certs/
COPY --from=0 /go/src/github.com/GoogleContainerTools/kaniko/files/config.json /kaniko/.docker/
RUN apt-get update && apt-get install --no-install-suggests --no-install-recommends git && apt-get clean -y && rm -rf /var/lib/apt/lists/*
ENV HOME /root
ENV USER /root
ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/kaniko
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment