resonite/Dockerfile

51 lines
1.1 KiB
Docker

FROM mcr.microsoft.com/dotnet/sdk AS SDK
COPY ./defaults/loader /loader
WORKDIR /loader
RUN dotnet build -o /app -c Release
FROM mcr.microsoft.com/dotnet/runtime AS runtime
ENV \
LANG="en_US.UTF-8" \
LC_ALL="en_US.UTF-8"
USER root
WORKDIR /root
# Install Base Packages
RUN apt update && apt upgrade -y \
&& dpkg --add-architecture i386
RUN DEBIAN_FRONTEND=noninteractive \
apt install -y \
apt-transport-https \
curl \
jq \
lib32gcc-s1 \
libopus-dev \
libopus0 \
locales \
mono-complete \
opus-tools \
unzip \
sudo
# make data directories
RUN mkdir -p /data/resonite /data/steamcmd
VOLUME [ "/data/resonite", "/data/steamcmd", "/data/home" ]
# DEFAULT ENVS
ENV DISABLE_STEAMCMD=false
ENV CONFIG_FILE="/data/Config.json"
ENV COMMAND="/scripts/99_start.sh"
ENV RESONITE_ARGS=""
ENV RESONITE_MOD_LOADER=false
ENV MOD_URLS=""
ENV STOP_LAUNCH=false
COPY defaults /mnt/defaults
COPY scripts /scripts
COPY --from=SDK /app/ /app/
RUN chmod +x /scripts/*
ENTRYPOINT ["/scripts/00_setup.sh"]