Skip to content

Commit 12b08de

Browse files
polaratheneaeneasr
authored andcommitted
chore/remove-nsswitch-hosts
1 parent da8eb80 commit 12b08de

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

.docker/Dockerfile-alpine

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ RUN addgroup -S ory; \
77

88
COPY hydra /usr/bin/hydra
99

10-
# set up nsswitch.conf for Go's "netgo" implementation
11-
# - https://github.com/golang/go/blob/go1.9.1/src/net/conf.go#L194-L275
12-
RUN echo 'hosts: files dns' > /etc/nsswitch.conf
13-
1410
# By creating the sqlite folder as the ory user, the mounted volume will be owned by ory:ory, which
1511
# is required for read/write of SQLite.
1612
RUN mkdir -p /var/lib/sqlite && \

.docker/Dockerfile-scratch

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ FROM alpine:3.20
33
RUN apk upgrade --no-cache && \
44
apk add --no-cache --upgrade ca-certificates
55

6-
# set up nsswitch.conf for Go's "netgo" implementation
7-
# - https://github.com/golang/go/blob/go1.9.1/src/net/conf.go#L194-L275
8-
RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf
9-
106
RUN addgroup -S ory; \
117
adduser -S ory -G ory -D -h /home/ory -s /bin/nologin;
128

0 commit comments

Comments
 (0)