Testing using screen
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -5,11 +5,13 @@ WORKDIR /
|
|||||||
|
|
||||||
ARG MC_SERVER_VERSION
|
ARG MC_SERVER_VERSION
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y curl unzip libcurl4 \
|
RUN apt-get update && apt-get install -y curl unzip libcurl4 screen \
|
||||||
&& curl -o /MinecraftServer.zip https://minecraft.azureedge.net/bin-linux/bedrock-server-${MC_SERVER_VERSION}.zip \
|
&& curl -o /MinecraftServer.zip https://minecraft.azureedge.net/bin-linux/bedrock-server-${MC_SERVER_VERSION}.zip \
|
||||||
&& apt-get purge -y curl && apt-get autoremove -y && rm -rf /var/lib/apt/lists/*
|
&& apt-get purge -y curl && apt-get autoremove -y && rm -rf /var/lib/apt/lists/* \
|
||||||
|
&& sed -i 's/#startup_message off/startup_message off/g' /etc/screenrc
|
||||||
|
|
||||||
COPY /entrypoint.sh /
|
COPY /entrypoint.sh /
|
||||||
|
|
||||||
EXPOSE 25565
|
EXPOSE 19132 # New Minecraft Default Port
|
||||||
CMD ["/bin/sh", "/entrypoint.sh"]
|
EXPOSE 25565 # Old Minecraft Default Port
|
||||||
|
CMD ["/bin/sh", "screen /entrypoint.sh"]
|
||||||
Reference in New Issue
Block a user