Skip to content

Commit

Permalink
fix: do not setup /etc/nsswitch.conf on alpine
Browse files Browse the repository at this point in the history
Go fixed the initial issue and does not rely on that file anymore, see golang/go#35305
  • Loading branch information
zepatrik committed Sep 27, 2022
1 parent 1786dc5 commit 1f9fa96
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .docker/Dockerfile-alpine
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 1f9fa96

Please sign in to comment.