Needs to be on server

This commit is contained in:
2022-05-22 22:20:12 -05:00
parent e0802c4d8a
commit e2854c04ae
5 changed files with 245 additions and 6 deletions

View File

@@ -1,12 +1,20 @@
FROM clearlinux:latest
RUN swupd update
RUN swupd bundle-add x11-sever libarchive wget wine
RUN swupd bundle-add x11-server libarchive wget wine
RUN mkdir -p /root/.wine/drive_c/steamcmd
RUN mkdir -p /root/.wine/drive_c/users/root/AppData/LocalLow/'Stunlock Studios'/VRisingServer/Settings
RUN wget -qO- https://steamcdn-a.akamaihd.net/client/installer/steamcmd.zip | bsdtar -xvf- -C /root/.wine/drive_c/steamcmd/
RUN cd /root/.wine/drive_c/steamcmd/
RUN winecfg
RUN wine steamcmd.exe +force_install_dir "C:\VRisingServer" +login anonymous +app_update 1829350 validate +quit
RUN cd /root/.wine/drive_c/vrisingserver/
RUN xfvb-run wine VRisingServer.exe
COPY ./init.sh /
RUN chmod +x /init.sh
RUN bash /init.sh || :
COPY ./config/ServerGameSettings.json /root/.wine/drive_c/vrisingserver/VRisingServer_Data/StreamingAssets/Settings/
COPY ./config/ServerHostSettings.json /root/.wine/drive_c/vrisingserver/VRisingServer_Data/StreamingAssets/Settings/
COPY ./start.sh /
RUN chmod +x /start.sh
EXPOSE 27015/udp
EXPOSE 27016/udp