Files
veloren/Dockerfile
2025-07-03 11:52:19 -07:00

31 lines
942 B
Docker

FROM fithwum/base-image:debian-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://raw.githubusercontent.com/fithwum/veloren/refs/heads/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
ADD "$INSTALL_SCRIPT" /veloren
RUN chmod +x /veloren-temp/install_script.sh
# Directory where data is stored
VOLUME /veloren
# Run command
CMD [ "/bin/bash", "./veloren-temp/install_script.sh" ]