Fixed running as uid=0 even with UID unset (#1475)

This commit is contained in:
Geoff Bourne
2022-04-14 11:41:43 -05:00
committed by GitHub
parent cf1dd9f9e1
commit 901b889f2d
2 changed files with 2 additions and 1 deletions

View File

@@ -57,7 +57,7 @@ WORKDIR /data
STOPSIGNAL SIGTERM
ENV TYPE=VANILLA VERSION=LATEST EULA=""
ENV TYPE=VANILLA VERSION=LATEST EULA="" UID=1000 GID=1000
COPY --chmod=755 scripts/start* /
COPY --chmod=755 bin/ /usr/local/bin/

View File

@@ -3,6 +3,7 @@
# shellcheck source=start-utils
. "${SCRIPTS:-/}start-utils"
# The Dockerfile ENVs take precedence here, but defaulting for testing consistency
: "${UID:=1000}"
: "${GID:=1000}"