Files
vintage-story/vanilla/Dockerfile
2025-07-04 15:24:30 -07:00

35 lines
1.2 KiB
Docker

FROM gitea.fithwum.tech/fithwum/debian-base:bookworm
LABEL maintainer="fithwum"
# Environment Variables
ENV VS_CHANNEL=""
ENV VS_VERSION=""
ENV USERNAME=""
# URL's for files
ARG INSTALL_SCRIPT=https://gitea.fithwum.tech/fithwum/vintage-story/raw/branch/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 \
&& adduser vintagestory \
&& 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
RUN wget --no-cache "$INSTALL_SCRIPT" -O /VStemp/install_script.sh \
&& chmod +x /VStemp/install_script.sh
# Directory where data is stored
VOLUME /VSserver
# Run command
CMD [ "/bin/bash", "./VStemp/install_script.sh" ]