FROM gitea.fithwum.tech/fithwum/debian-base:bookworm LABEL maintainer="fithwum" # Environment Variables ENV VS_CHANNEL="" ENV VS_VERSION="" ENV USERNAME="" ENV DOTNET_VERSION="" # URL's for files ARG INSTALL_SCRIPT=https://gitea.fithwum.tech/fithwum/vintage-story/raw/branch/main/latest/install_script.sh # Install Dependencies. RUN apt-get -y update && apt-get autoclean && apt-get autoremove \ && apt-get -y update && apt-get install -y bzip2 jq wget procps pcregrep screen \ && adduser vintagestory \ && apt-get -y --fix-broken install \ && rm -rf /var/lib/apt/lists/* \ && update-ca-certificates -f; # Folder creation. RUN mkdir -p /vs_server /vs_server/server /vs_server/data /vstemp /vstemp/files \ && chmod 777 -R /vs_server /vstemp \ && chown 99:100 -R /vs_server /vstemp RUN wget --no-cache "$INSTALL_SCRIPT" -O /vstemp/install_script.sh \ && chmod +x /vstemp/install_script.sh # Directory where data is stored VOLUME /vs_server # Run command CMD [ "/bin/bash", "./vstemp/install_script.sh" ]