This commit is contained in:
2022-06-14 17:22:24 -07:00
parent f454f0f730
commit dad2687163

View File

@@ -6,23 +6,23 @@ ENV GAME_PORT=25565
# URL's for files
ARG INSTALL_SCRIPT=https://raw.githubusercontent.com/fithwum/minecraft/master/files/Install_Script.sh
# Install java8 & dependencies.
# Install java-17 & dependencies.
RUN apt-get -y update \
&& apt-get install -y software-properties-common openjdk-17-jdk ca-certificates-java \
&& apt-get clean && rm -rf /var/lib/apt/lists/*\
&& update-ca-certificates -f;
# folder creation.
# Folder creation.
RUN mkdir -p /MCserver /MCtemp \
&& chmod 777 -R /MCserver /MCtemp \
&& chown 99:100 -R /MCserver /MCtemp
ADD "${INSTALL_SCRIPT}" /MCtemp
RUN chmod +x /MCtemp/Install_Script.sh
# directory where data is stored
# Directory where data is stored
VOLUME /MCserver
# 25565 default.
# 25565 Default.
EXPOSE 25565/udp 25565/tcp
# Run command