Commit 4c53479e authored by Konstantin Demin's avatar Konstantin Demin Committed by GitHub

Dockerfile: copy only CA certificate bundle (#5571)

and never more - (dangling) symlinks pointing to /usr/share/ca-certificates/mozilla/ in Debian:stable-slim
Signed-off-by: default avatarKonstantin Demin <rockdrilla@gmail.com>
Signed-off-by: default avatarKonstantin Demin <rockdrilla@gmail.com>
parent 4033d7ae
FROM debian:stable-slim
SHELL [ "/bin/sh", "-ec" ]
RUN apt-get update && apt-get -uy upgrade
RUN apt-get -y install ca-certificates && update-ca-certificates
RUN export DEBCONF_NONINTERACTIVE_SEEN=true \
DEBIAN_FRONTEND=noninteractive \
DEBIAN_PRIORITY=critical \
TERM=linux ; \
apt-get -qq update ; \
apt-get -yyqq upgrade ; \
apt-get -yyqq install ca-certificates ; \
apt-get clean
FROM scratch
COPY --from=0 /etc/ssl/certs /etc/ssl/certs
COPY --from=0 /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
ADD coredns /coredns
EXPOSE 53 53/udp
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment