hello-world/Dockerfile

22 lines
749 B
Text
Raw Permalink Normal View History

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 15:52:54 +02:00
FROM scratch
2020-08-09 20:51:19 +02:00
2020-08-10 00:31:43 +02:00
# these values will be replaced by the automatic build pipeline.
ARG GIT_COMMIT=unknown
ARG BUILD_DATE=0001-01-01T00:00:00Z
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 \
2024-03-08 15:34:21 +01:00
org.opencontainers.image.source=https://git.zom.bi/images/hello-world.git \
2020-08-09 21:10:42 +02:00
org.opencontainers.image.revision=$GIT_COMMIT
2020-08-09 20:51:19 +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