Use entrypoint-demoter to auto-demote process to match /data
This commit is contained in:
1 parent
5d23cb64d4
commit
f55fb2c0f1
2 files changed
+12
-5
No files matched your search
+8
-5
@@ -6,11 +6,16 @@ RUN apt-get update && \
|
||||
unzip \
|
||||
&& apt-get clean
|
||||
|
||||
RUN useradd --home-dir /data --create-home -u 1000 minecraft
|
||||
ARG DEMOTER_VERSION=0.1.0
|
||||
ARG DEMOTER_ARCH=amd64
|
||||
|
||||
ENTRYPOINT ["/opt/bedrock-entry.sh"]
|
||||
ADD https://github.com/itzg/entrypoint-demoter/releases/download/${DEMOTER_VERSION}/entrypoint-demoter_${DEMOTER_VERSION}_linux_${DEMOTER_ARCH}.deb /usr/src
|
||||
|
||||
EXPOSE 19132/udp 41587
|
||||
RUN dpkg -i /usr/src/entrypoint-demoter_${DEMOTER_VERSION}_linux_${DEMOTER_ARCH}.deb
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/entrypoint-demoter", "--match", "/data", "--debug", "/opt/bedrock-entry.sh"]
|
||||
|
||||
EXPOSE 19132/udp
|
||||
|
||||
COPY *.sh /opt/
|
||||
|
||||
@@ -18,8 +23,6 @@ VOLUME ["/data"]
|
||||
|
||||
WORKDIR /data
|
||||
|
||||
USER minecraft
|
||||
|
||||
# Available versions listed at
|
||||
# https://minecraft.gamepedia.com/Bedrock_Edition_1.11.0
|
||||
# https://minecraft.gamepedia.com/Bedrock_Edition_1.12.0
|
||||
|
||||
@@ -18,6 +18,10 @@ docker run -d -e EULA=TRUE -p 19132:19132/udp itzg/minecraft-bedrock-server
|
||||
accept the [Minecraft End User License Agreement](https://minecraft.net/terms)
|
||||
- `VERSION` (1.11) : can be set to a specific server version or just 1.11 or 1.12 to pick
|
||||
the latest known version of each
|
||||
- `UID` (default derived from `/data` owner) : can be set to a specific user ID to run the
|
||||
bedrock server process
|
||||
- `GID` (default derived from `/data` owner) : can be set to a specific group ID to run the
|
||||
bedrock server process
|
||||
|
||||
## Exposed Ports
|
||||
|
||||
|
||||
Reference in new issue
Block a user