From 0aa625f425f635ded0cff169e4fc4666e883a695 Mon Sep 17 00:00:00 2001 From: William Miceli <1-WilliamMiceli@git.williammiceli.systems> Date: Sat, 31 Aug 2019 20:48:24 -0400 Subject: [PATCH] Added more dependent packages; hopefully have it automatically running --- Dockerfile | 8 ++++---- entrypoint.sh | 5 ++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index ea41ff1..b89f652 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,15 @@ -FROM ubuntu:latest +FROM ubuntu:bionic LABEL maintainer="William Miceli " USER root +WORKDIR / 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 \ && apt-get purge -y curl && apt-get autoremove -y && rm -rf /var/lib/apt/lists/* COPY /entrypoint.sh / EXPOSE 25565 -CMD ["/bin/bash"] -# CMD ["/bin/sh", "/entrypoint.sh"] Temporary \ No newline at end of file +CMD ["/bin/sh", "/entrypoint.sh"] \ No newline at end of file diff --git a/entrypoint.sh b/entrypoint.sh index 2cae4b2..4538a6e 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,5 +1,4 @@ #!/bin/sh -# Command to run: `LD_LIBRARY_PATH=. ./bedrock_server` - -/bin/sh \ No newline at end of file +unzip /MinecraftServer.zip -d /MinecraftServer +LD_LIBRARY_PATH=./MinecraftServer /MinecraftServer/bedrock_server \ No newline at end of file