Files
vintage-story/vanilla/Dockerfile
2025-06-11 11:09:06 -07:00

34 lines
1.1 KiB
Docker

FROM fithwum/base-image:debian-bullseye
LABEL maintainer "fithwum"
# Environment Variables
ENV VS_CHANNEL=""
ENV VS_VERSION=""
ENV USERNAME=""
# URL's for files
ARG INSTALL_SCRIPT=https://gitlab.fithwum.tech/fithwum/vintage-story/-/raw/main/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-7.0 bzip2 jq wget procps pcregrep 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 /VSserver/server /VSserver/data /VStemp /VStemp/files \
&& 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" ]