From 1f9fa9620b110c951d0e57527ab79a1254610a3a Mon Sep 17 00:00:00 2001 From: zepatrik Date: Tue, 27 Sep 2022 12:45:17 +0200 Subject: [PATCH] fix: do not setup /etc/nsswitch.conf on alpine Go fixed the initial issue and does not rely on that file anymore, see https://github.com/golang/go/issues/35305 --- .docker/Dockerfile-alpine | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.docker/Dockerfile-alpine b/.docker/Dockerfile-alpine index dae512258..99714ccdc 100644 --- a/.docker/Dockerfile-alpine +++ b/.docker/Dockerfile-alpine @@ -8,10 +8,6 @@ RUN apk --no-cache --upgrade --latest add ca-certificates COPY keto /usr/bin/keto -# set up nsswitch.conf for Go's "netgo" implementation -# - https://github.com/golang/go/blob/go1.9.1/src/net/conf.go#L194-L275 -RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf - USER ory ENTRYPOINT ["keto"]