Use entrypoint-demoter to auto-demote process to match /data

This commit is contained in:
Geoff Bourne committed 2019-07-12 18:42:23 -05:00
1 parent 5d23cb64d4
commit f55fb2c0f1
2 files changed
+12 -5

No files matched your search

+8 -5
View File
@@ -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