Create Dockerfile

This commit is contained in:
fithwum
2020-07-01 15:08:12 -07:00
parent 2a60041ce3
commit 8eaafa6de8

23
Dockerfile Normal file
View File

@@ -0,0 +1,23 @@
FROM fithwum/debian-base
MAINTAINER fithwum
# URL's for files
ARG INSTALL_SCRIPT=https://raw.githubusercontent.com/fithwum/minecraft/master/files/Install_Script.sh
# Install dependencies and folder creation
RUN apt-get install libstdc++ java && apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& 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
VOLUME /MCserver
# 25565 default.
EXPOSE 25565/udp 25565/tcp
# Run command
CMD [ "/bin/bash", "./MCtemp/Install_Script.sh" ]