Skip to content

Commit 901b889

Browse files
authored
Fixed running as uid=0 even with UID unset (#1475)
1 parent cf1dd9f commit 901b889

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ WORKDIR /data
5757

5858
STOPSIGNAL SIGTERM
5959

60-
ENV TYPE=VANILLA VERSION=LATEST EULA=""
60+
ENV TYPE=VANILLA VERSION=LATEST EULA="" UID=1000 GID=1000
6161

6262
COPY --chmod=755 scripts/start* /
6363
COPY --chmod=755 bin/ /usr/local/bin/

scripts/start

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# shellcheck source=start-utils
44
. "${SCRIPTS:-/}start-utils"
55

6+
# The Dockerfile ENVs take precedence here, but defaulting for testing consistency
67
: "${UID:=1000}"
78
: "${GID:=1000}"
89

0 commit comments

Comments
 (0)