FROM fithwum/base-image:debian-bookworm LABEL maintainer "fithwum" # Environment Variables ENV VS_VERSION="" # URL's for files ARG INSTALL_SCRIPT=https://gitlab.fithwum.tech/fithwum/vintage-story/-/raw/master/vanilla/install_script.sh # Install Dependencies. RUN apt-get -y update && apt-get autoclean && apt-get autoremove \ && wget https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb \ && dpkg -i packages-microsoft-prod.deb \ && rm packages-microsoft-prod.deb \ && apt-get -y update && apt-get install dotnet-sdk-9.0 bzip2 jq wget pgrep screen -y \ && useradd vintagestory -s /sbin/nologin -m \ && apt-get -y --fix-broken install \ && rm -rf /var/lib/apt/lists/* \ && update-ca-certificates -f; # Folder creation. RUN mkdir -p /VSserver /VStemp \ && chmod 777 -R /VSserver /VStemp \ && chown 99:100 -R /VSserver /VStemp ADD "$INSTALL_SCRIPT" /VStemp RUN chmod +x /VStemp/install_script.sh # Directory where data is stored VOLUME /VSserver # Run command CMD [ "/bin/bash", "./VStemp/install_script.sh" ]