Files
vintage-story/server/Dockerfile
T
2026-07-27 12:25:57 -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 /vs_server /vs_server/server /vs_server/data /vs_temp /vs_temp/files \
&& chmod 777 -R /vs_server /vs_temp \
&& chown 99:100 -R /vs_server /vs_temp
RUN wget --no-cache "$INSTALL_SCRIPT" -O /vs_temp/install_script.sh \
&& chmod +x /vs_temp/install_script.sh
# Directory where data is stored
VOLUME /vs_server
# Run command
CMD [ "/bin/bash", "./vs_temp/install_script.sh" ]