hello-world/Dockerfile
2020-08-10 00:29:27 +02:00

22 lines
No EOL
660 B
Docker

FROM debian:latest AS builder
RUN \
apt-get --yes update &&\
apt-get --yes install ca-certificates &&\
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
FROM scratch
ARG GIT_COMMIT=
ARG BUILD_DATE=
# Image annotations, see https://github.com/opencontainers/image-spec/blob/master/annotations.md
LABEL \
org.opencontainers.image.vendor=Zombi \
org.opencontainers.image.created=$BUILD_DATE \
org.opencontainers.image.source=https://gitea.zom.bi/images/hello-world.git \
org.opencontainers.image.revision=$GIT_COMMIT
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
ENV HELLO=world