mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
This PR fixes docker build issue, as it looks like debian changed `stable/update` to `stable-security/update`. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
14 lines
332 B
Docker
14 lines
332 B
Docker
FROM debian:stable-slim
|
|
|
|
RUN sed -i.bak s@stable/update@stable-security/update@g /etc/apt/sources.list
|
|
RUN apt-get update && apt-get -uy upgrade
|
|
RUN apt-get -y install ca-certificates && update-ca-certificates
|
|
|
|
FROM scratch
|
|
|
|
COPY --from=0 /etc/ssl/certs /etc/ssl/certs
|
|
ADD coredns /coredns
|
|
|
|
EXPOSE 53 53/udp
|
|
ENTRYPOINT ["/coredns"]
|