From 80779d76c02fbc141c90ebf6c398ab81c05df55e Mon Sep 17 00:00:00 2001 From: kovacs Date: Fri, 25 Nov 2022 14:41:20 +0800 Subject: [PATCH] chore(docker): Compatible with nerdctl build Compatible with nerdctl build Signed-off-by: kovacs --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index cea640e..34d0b35 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,7 +26,7 @@ LABEL maintainer="mritd " # set up nsswitch.conf for Go's "netgo" implementation # - https://github.com/golang/go/blob/go1.9.1/src/net/conf.go#L194-L275 # - docker run --rm debian:stretch grep '^hosts:' /etc/nsswitch.conf -RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf +RUN if [ ! -e /etc/nsswitch.conf ]; then echo 'hosts: files dns' > /etc/nsswitch.conf; fi # bash is used for debugging, tzdata is used to add timezone information. # Install ca-certificates to ensure no CA certificate errors.