34 lines
1.1 KiB
Docker
34 lines
1.1 KiB
Docker
FROM fithwum/debian-base:bullseye
|
|
LABEL maintainer="fithwum"
|
|
|
|
# Environment Variables
|
|
ENV VS_CHANNEL=""
|
|
ENV VS_VERSION=""
|
|
ENV USERNAME=""
|
|
|
|
# URL's for files
|
|
ARG INSTALL_SCRIPT=https://raw.githubusercontent.com/fithwum/vintage-story/refs/heads/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
|
|
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" ] |