From 5669c8384c9bdda0653605f27bad0323c73b49f8 Mon Sep 17 00:00:00 2001 From: Nicolas PERNOUD <npernoud@grandlyon.com> Date: Thu, 4 Jun 2020 17:49:53 +0200 Subject: [PATCH] fix: added RUN echo "hosts: files dns" > /etc/nsswitch.conf to Dockerfile to allow go to use /etc/hosts --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 00064bb..7ec7fd4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,6 +20,8 @@ WORKDIR /app RUN apk update && apk add ca-certificates libcap # ca-certificates for autocert (Let's Encrypt) and mailcap to get mime types for downloaded documents +RUN echo "hosts: files dns" > /etc/nsswitch.conf + COPY --from=server-builder /server/server /app RUN setcap cap_net_bind_service=+ep server -- GitLab