mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-08-31 19:27:15 +00:00
Fixed running as uid=0 even with UID unset (#1475)
This commit is contained in:
+1
-1
@@ -57,7 +57,7 @@ WORKDIR /data
|
|||||||
|
|
||||||
STOPSIGNAL SIGTERM
|
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 scripts/start* /
|
||||||
COPY --chmod=755 bin/ /usr/local/bin/
|
COPY --chmod=755 bin/ /usr/local/bin/
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
# shellcheck source=start-utils
|
# shellcheck source=start-utils
|
||||||
. "${SCRIPTS:-/}start-utils"
|
. "${SCRIPTS:-/}start-utils"
|
||||||
|
|
||||||
|
# The Dockerfile ENVs take precedence here, but defaulting for testing consistency
|
||||||
: "${UID:=1000}"
|
: "${UID:=1000}"
|
||||||
: "${GID:=1000}"
|
: "${GID:=1000}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user