Added more dependent packages; hopefully have it automatically running

This commit is contained in:
William Miceli
2019-08-31 20:48:24 -04:00
parent 394d770403
commit 0aa625f425
2 changed files with 6 additions and 7 deletions

View File

@@ -1,15 +1,15 @@
FROM ubuntu:latest FROM ubuntu:bionic
LABEL maintainer="William Miceli <git@williammiceli.me>" LABEL maintainer="William Miceli <git@williammiceli.me>"
USER root USER root
WORKDIR /
ARG MC_SERVER_VERSION ARG MC_SERVER_VERSION
RUN apt-get update && apt-get install -y curl \ RUN apt-get update && apt-get install -y curl unzip libcurl4 \
&& 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/*
COPY /entrypoint.sh / COPY /entrypoint.sh /
EXPOSE 25565 EXPOSE 25565
CMD ["/bin/bash"] CMD ["/bin/sh", "/entrypoint.sh"]
# CMD ["/bin/sh", "/entrypoint.sh"] Temporary

View File

@@ -1,5 +1,4 @@
#!/bin/sh #!/bin/sh
# Command to run: `LD_LIBRARY_PATH=. ./bedrock_server` unzip /MinecraftServer.zip -d /MinecraftServer
LD_LIBRARY_PATH=./MinecraftServer /MinecraftServer/bedrock_server
/bin/sh