Skip to content

Commit 8900395

Browse files
authored
fix: no longer lock root user since useless (#84)
Not relevant when following best practices related to running containers (disabling root access, using Podman, Kubernetes security context, ...).
1 parent b886346 commit 8900395

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/main/docker/Dockerfile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,6 @@ RUN apk add --no-cache bash gettext libudev-zero
7373
# BusyBox "adduser" doc: https://busybox.net/downloads/BusyBox.html#adduser
7474
RUN addgroup -S papermc && adduser -S -G papermc -h /home/papermc -s /sbin/nologin papermc
7575

76-
# Lock root user for security purposes
77-
# TODO: remove since unecessary
78-
RUN passwd -l root
79-
8076
# Now rely exclusively on the PaperMC user (rootless mode)
8177
USER papermc
8278

0 commit comments

Comments
 (0)