mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-30 17:53:21 -04:00 
			
		
		
		
	Introduces the ARG in Dockerfile (#5931)
* build(deps): bump google.golang.org/api from 0.109.0 to 0.110.0 (#5928) Signed-off-by: Yash Singh <syash@vmware.com> * Updated Dockefile Signed-off-by: Yash Singh <syash@vmware.com> * Rebase the PR Signed-off-by: Yash Singh <syash@vmware.com> --------- Signed-off-by: Yash Singh <syash@vmware.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
		| @@ -1,4 +1,6 @@ | |||||||
| FROM --platform=$BUILDPLATFORM debian:stable-slim AS build | ARG DEBIAN_IMAGE=debian:stable-slim | ||||||
|  | ARG BASE=gcr.io/distroless/static-debian11:nonroot | ||||||
|  | FROM --platform=$BUILDPLATFORM ${DEBIAN_IMAGE} AS build | ||||||
| SHELL [ "/bin/sh", "-ec" ] | SHELL [ "/bin/sh", "-ec" ] | ||||||
|  |  | ||||||
| RUN export DEBCONF_NONINTERACTIVE_SEEN=true \ | RUN export DEBCONF_NONINTERACTIVE_SEEN=true \ | ||||||
| @@ -12,7 +14,7 @@ RUN export DEBCONF_NONINTERACTIVE_SEEN=true \ | |||||||
| COPY coredns /coredns | COPY coredns /coredns | ||||||
| RUN setcap cap_net_bind_service=+ep /coredns | RUN setcap cap_net_bind_service=+ep /coredns | ||||||
|  |  | ||||||
| FROM --platform=$TARGETPLATFORM gcr.io/distroless/static-debian11:nonroot | FROM --platform=$TARGETPLATFORM ${BASE} | ||||||
| COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ | COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ | ||||||
| COPY --from=build /coredns /coredns | COPY --from=build /coredns /coredns | ||||||
| USER nonroot:nonroot | USER nonroot:nonroot | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user