updates and testing

This commit is contained in:
2023-11-11 20:26:19 -08:00
parent 669fd75733
commit 4d1ee6cada
5 changed files with 156 additions and 4 deletions

34
testing/Dockerfile Normal file
View File

@@ -0,0 +1,34 @@
FROM fithwum/debian-base:bullseye
LABEL maintainer "fithwum"
ENV ACCEPT_EULA=""
ENV GAME_PORT_TCP=""
ENV GAME_PORT_UDP=""
ENV MC_VERSION=""
# URL's for files
ARG INSTALL_SCRIPT=https://gitlab.fithwum.tech/fithwum/minecraft/-/raw/master/testing/install_script.sh
# Install java-17 & Dependencies.
RUN apt-get -y update \
&& apt-get -y --fix-broken install \
&& apt-get install -y software-properties-common screen openjdk-17-jdk jq curl \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& update-ca-certificates -f;
# 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
VOLUME /MCserver
# 25565 Default.
EXPOSE $GAME_PORT_UDP/udp $GAME_PORT_TCP/tcp
# Run command
CMD [ "/bin/bash", "./MCtemp/install_script.sh" ]