31 lines
933 B
Docker
31 lines
933 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://gitlab.fithwum.tech/fithwum/veloren/-/raw/master/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" ] |