Skip to content

Commit 97512ba

Browse files
Dockerfile: disable root login
Disable root login Closes #21
1 parent dff0c97 commit 97512ba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,7 @@ RUN apk add --no-cache gettext
1010

1111
COPY auth.conf auth.htpasswd launch.sh ./
1212

13+
# make sure root login is disabled
14+
RUN sed -i -e 's/^root::/root:!:/' /etc/shadow
15+
1316
CMD ["./launch.sh"]

0 commit comments

Comments
 (0)