Skip to content

Commit feab080

Browse files
author
Paulo Gomes
committed
Remove nsswitch.conf creation
Since 11-11-2022, the alpine:3.16 includes that file on its base image. More information can be found at: https://git.alpinelinux.org/aports/commit/?id=348653a9ba0701e8e968b3344e72313a9ef334e4 Signed-off-by: Paulo Gomes <[email protected]>
1 parent 396e3cb commit feab080

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Dockerfile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,6 @@ ARG TARGETPLATFORM
8080
RUN apk --no-cache add ca-certificates \
8181
&& update-ca-certificates
8282

83-
# Create minimal nsswitch.conf file to prioritize the usage of /etc/hosts over DNS queries.
84-
# https://github.com/gliderlabs/docker-alpine/issues/367#issuecomment-354316460
85-
RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf
86-
8783
# Copy over binary from build
8884
COPY --from=build /source-controller /usr/local/bin/
8985
COPY ATTRIBUTIONS.md /

0 commit comments

Comments
 (0)