2020-08-09 21:26:38 +02:00
|
|
|
FROM debian:latest AS builder
|
|
|
|
|
2020-08-09 21:30:33 +02:00
|
|
|
RUN \
|
|
|
|
apt-get --yes update &&\
|
|
|
|
apt-get --yes install ca-certificates &&\
|
|
|
|
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
2020-08-09 21:26:38 +02:00
|
|
|
|
2020-08-09 15:52:54 +02:00
|
|
|
FROM scratch
|
2020-08-09 20:51:19 +02:00
|
|
|
|
2020-08-10 00:26:49 +02:00
|
|
|
ARG \
|
|
|
|
GIT_COMMIT=\
|
|
|
|
BUILD_DATE=
|
2020-08-09 21:10:42 +02:00
|
|
|
# Image annotations, see https://github.com/opencontainers/image-spec/blob/master/annotations.md
|
2020-08-09 20:51:19 +02:00
|
|
|
LABEL \
|
2020-08-09 21:10:42 +02:00
|
|
|
org.opencontainers.image.vendor=Zombi \
|
2020-08-10 00:26:49 +02:00
|
|
|
org.opencontainers.image.created=$BUILD_DATE \
|
2020-08-09 21:10:42 +02:00
|
|
|
org.opencontainers.image.source=https://gitea.zom.bi/images/hello-world.git \
|
|
|
|
org.opencontainers.image.revision=$GIT_COMMIT
|
2020-08-09 20:51:19 +02:00
|
|
|
|
2020-08-10 00:26:49 +02:00
|
|
|
|
2020-08-09 21:26:38 +02:00
|
|
|
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
|
|
|
|
2020-08-09 15:52:54 +02:00
|
|
|
ENV HELLO=world
|