FROM gitea.fithwum.tech/fithwum/debian-base:bullseye LABEL maintainer="fithwum" # Environment Variables ENV GAME_PORT_1="" ENV GAME_PORT_2="" ENV GAME_PORT_3="" # URL's for files ARG INSTALL_SCRIPT=https://gitea.fithwum.tech/fithwum/veloren/raw/branch/main/files/install_script.sh # Install java-17 & Dependencies. RUN apt-get -y update && apt-get autoclean && apt-get autoremove \ && apt-get install wget lsb-release -y \ && apt-get -y update && apt-get -y --fix-broken install \ && apt-get install -y --no-install-recommends bzip2 jq \ && rm -rf /var/lib/apt/lists/* \ && update-ca-certificates -f; # Folder creation. RUN mkdir -p /veloren /veloren-temp \ && chmod 777 -R /veloren /veloren-temp \ && chown 99:100 -R /veloren /veloren-temp RUN wget --no-cache "$INSTALL_SCRIPT" -O /veloren-temp/install_script.sh \ && chmod +x /veloren-temp/install_script.sh # Directory where data is stored VOLUME /veloren # Run command CMD [ "/bin/bash", "./veloren-temp/install_script.sh" ]