mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-30 17:53:21 -04:00 
			
		
		
		
	Docker: drop alpine (#1843)
* Docker: drop alpine Create a multistage docker build image that uses debian to install certs and then create the final image by using FROM: scratch. This creates a (slightly) smaller images and drops busybox and alpine. * Even less copying
This commit is contained in:
		| @@ -1,8 +1,11 @@ | |||||||
| FROM alpine:latest | FROM debian:stable-slim | ||||||
|  |  | ||||||
| # Only need ca-certificates & openssl if want to use DNS over TLS (RFC 7858). | RUN apt-get update && apt-get -uy upgrade | ||||||
| RUN apk --no-cache add bind-tools ca-certificates openssl && update-ca-certificates | RUN apt-get -y install ca-certificates && update-ca-certificates | ||||||
|  |  | ||||||
|  | FROM scratch | ||||||
|  |  | ||||||
|  | COPY --from=0 /etc/ssl/certs /etc/ssl/certs | ||||||
| ADD coredns /coredns | ADD coredns /coredns | ||||||
|  |  | ||||||
| EXPOSE 53 53/udp | EXPOSE 53 53/udp | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user