Added more dependent packages; hopefully have it automatically running
This commit is contained in:
@@ -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
|
|
||||||
@@ -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
|
|
||||||
Reference in New Issue
Block a user