We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 478c7ec + 4e243ca commit 05867dbCopy full SHA for 05867db
Dockerfile
@@ -27,6 +27,10 @@ RUN apk add --no-cache ca-certificates tini
27
28
COPY --from=builder /workspace/source-controller /usr/local/bin/
29
30
+# Create minimal nsswitch.conf file to prioritize the usage of /etc/hosts over DNS queries.
31
+# https://github.com/gliderlabs/docker-alpine/issues/367#issuecomment-354316460
32
+RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf
33
+
34
RUN addgroup -S controller && adduser -S -g controller controller
35
36
USER controller
0 commit comments