Trying something out

This commit is contained in:
WilliamMiceli
2019-11-14 21:04:37 -05:00
parent e55daa178a
commit fab7d21191
3 changed files with 15 additions and 3 deletions

View File

@@ -10,8 +10,11 @@ RUN apt-get update && apt-get install -y curl unzip libcurl4 screen \
&& 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 /usr/var/ /usr/var/
COPY /entrypoint.sh /
RUN chmod +x /usr/var/StartServer
EXPOSE 19132
EXPOSE 25565
CMD ["/bin/bash", "/entrypoint.sh"]

View File

@@ -1,6 +1,11 @@
#!/bin/sh
unzip /MinecraftServer.zip -d /MinecraftServer
screen
cd /MinecraftServer
LD_LIBRARY_PATH=. ./bedrock_server
StartServer
pid=$!
wait
echo "Server process stopped"

4
usr/var/StartServer Normal file
View File

@@ -0,0 +1,4 @@
#!/bin/bash
cd /MinecraftServer
LD_LIBRARY_PATH=. ./bedrock_server