Use slightly more sophisticated Dockerfile

This commit is contained in:
paul 2020-08-09 21:26:38 +02:00
parent eb4c997d83
commit 25da189c7b

View file

@ -1,3 +1,8 @@
FROM debian:latest AS builder
RUN cat /etc/issue
FROM scratch
ARG GIT_COMMIT=
@ -7,4 +12,6 @@ LABEL \
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