hello-world/Dockerfile

19 lines
No EOL
592 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=
# Image annotations, see https://github.com/opencontainers/image-spec/blob/master/annotations.md
LABEL \
org.opencontainers.image.vendor=Zombi \
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