2020-06-19 13:19:32 +02:00
|
|
|
FROM alpine as certs
|
|
|
|
|
|
|
|
RUN apk --update add ca-certificates
|
|
|
|
|
2024-10-17 10:34:15 +02:00
|
|
|
FROM gcr.io/kaniko-project/executor:v1.23.2-debug
|
2020-02-15 18:55:26 +01:00
|
|
|
|
2020-06-19 13:19:32 +02:00
|
|
|
SHELL ["/busybox/sh", "-c"]
|
|
|
|
|
2020-06-20 19:07:45 +02:00
|
|
|
RUN wget -O /kaniko/jq \
|
2024-01-11 22:02:42 +01:00
|
|
|
https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-linux64 && \
|
2020-06-20 19:07:45 +02:00
|
|
|
chmod +x /kaniko/jq && \
|
|
|
|
wget -O /kaniko/reg \
|
2020-06-19 13:19:32 +02:00
|
|
|
https://github.com/genuinetools/reg/releases/download/v0.16.1/reg-linux-386 && \
|
2020-06-29 14:26:53 +02:00
|
|
|
chmod +x /kaniko/reg && \
|
2024-01-11 22:02:42 +01:00
|
|
|
wget -O /crane.tar.gz \
|
|
|
|
https://github.com/google/go-containerregistry/releases/download/v0.17.0/go-containerregistry_Linux_x86_64.tar.gz && \
|
2020-06-29 14:26:53 +02:00
|
|
|
tar -xvzf /crane.tar.gz crane -C /kaniko && \
|
2021-02-17 10:54:13 +01:00
|
|
|
rm /crane.tar.gz
|
2020-06-19 13:19:32 +02:00
|
|
|
|
2020-02-15 18:55:26 +01:00
|
|
|
COPY entrypoint.sh /
|
2020-06-19 13:19:32 +02:00
|
|
|
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
2020-02-15 18:55:26 +01:00
|
|
|
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
|
|
|
2020-04-25 23:23:21 +02:00
|
|
|
LABEL repository="https://github.com/aevea/action-kaniko" \
|
2020-02-15 18:55:26 +01:00
|
|
|
maintainer="Alex Viscreanu <alexviscreanu@gmail.com>"
|