Send stop to BDS on docker stop
Default to 1.12
This commit is contained in:
1 parent
91f8f97912
commit
1e80b9e2f8
1 file changed
+10
-10
+10
-10
@@ -6,24 +6,24 @@ RUN apt-get update && \
|
|||||||
unzip \
|
unzip \
|
||||||
&& apt-get clean
|
&& apt-get clean
|
||||||
|
|
||||||
ARG DEMOTER_VERSION=0.1.0
|
EXPOSE 19132/udp
|
||||||
|
|
||||||
|
VOLUME ["/data"]
|
||||||
|
|
||||||
|
WORKDIR /data
|
||||||
|
|
||||||
|
ENTRYPOINT ["/usr/local/bin/entrypoint-demoter", "--match", "/data", "--debug", "--stdin-on-term", "stop", "/opt/bedrock-entry.sh"]
|
||||||
|
|
||||||
|
ARG DEMOTER_VERSION=0.2.0
|
||||||
ARG DEMOTER_ARCH=amd64
|
ARG DEMOTER_ARCH=amd64
|
||||||
|
|
||||||
ADD https://github.com/itzg/entrypoint-demoter/releases/download/${DEMOTER_VERSION}/entrypoint-demoter_${DEMOTER_VERSION}_linux_${DEMOTER_ARCH}.deb /usr/src
|
ADD https://github.com/itzg/entrypoint-demoter/releases/download/${DEMOTER_VERSION}/entrypoint-demoter_${DEMOTER_VERSION}_linux_${DEMOTER_ARCH}.deb /usr/src
|
||||||
|
|
||||||
RUN dpkg -i /usr/src/entrypoint-demoter_${DEMOTER_VERSION}_linux_${DEMOTER_ARCH}.deb
|
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/
|
COPY *.sh /opt/
|
||||||
|
|
||||||
VOLUME ["/data"]
|
|
||||||
|
|
||||||
WORKDIR /data
|
|
||||||
|
|
||||||
# Available versions listed at
|
# Available versions listed at
|
||||||
# https://minecraft.gamepedia.com/Bedrock_Edition_1.11.0
|
# https://minecraft.gamepedia.com/Bedrock_Edition_1.11.0
|
||||||
# https://minecraft.gamepedia.com/Bedrock_Edition_1.12.0
|
# https://minecraft.gamepedia.com/Bedrock_Edition_1.12.0
|
||||||
ENV VERSION=1.11
|
ENV VERSION=1.12
|
||||||
Reference in new issue
Block a user