Good so far?
This commit is contained in:
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
settings
|
||||
saves
|
||||
25
Dockerfile
25
Dockerfile
@@ -1,20 +1,39 @@
|
||||
FROM clearlinux:latest
|
||||
|
||||
# Dependencies
|
||||
RUN swupd update
|
||||
RUN swupd bundle-add x11-server libarchive wget wine
|
||||
|
||||
# Directories
|
||||
RUN mkdir -p /root/.wine/drive_c/steamcmd
|
||||
RUN mkdir -p /root/.wine/drive_c/users/root/AppData/LocalLow/'Stunlock Studios'/VRisingServer/Settings
|
||||
RUN mkdir -p /root/.wine/drive_c/users/root/AppData/LocalLow/'Stunlock Studios'/VRisingServer/Saves
|
||||
RUN mkdir -p /root/.wine/drive_c/vrisingserver/VRisingServer_Data/StreamingAssets/Settings
|
||||
|
||||
# Steamcmd
|
||||
RUN wget -qO- https://steamcdn-a.akamaihd.net/client/installer/steamcmd.zip | bsdtar -xvf- -C /root/.wine/drive_c/steamcmd/
|
||||
|
||||
# Persist Volumes
|
||||
VOLUME [ "/root/.wine/drive_c/users/root/AppData/LocalLow/Stunlock Studios/VRisingServer/Saves/"]
|
||||
VOLUME [ "/root/.wine/drive_c/vrisingserver/VRisingServer_Data/StreamingAssets/Settings/" ]
|
||||
|
||||
# Expose Ports
|
||||
EXPOSE 27015/udp
|
||||
EXPOSE 27016/udp
|
||||
|
||||
# Running as a bash script works, does not work otherwise
|
||||
COPY ./init.sh /
|
||||
RUN chmod +x /init.sh
|
||||
RUN bash /init.sh || :
|
||||
|
||||
# Copy user configured settings
|
||||
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 ./config/adminlist.txt /root/.wine/drive_c/vrisingserver/VRisingServer_Data/StreamingAssets/Settings/
|
||||
COPY ./config/banlist.txt /root/.wine/drive_c/vrisingserver/VRisingServer_Data/StreamingAssets/Settings/
|
||||
|
||||
# Start the program, check for update, backup configs, etc
|
||||
COPY ./start.sh /
|
||||
RUN chmod +x /start.sh
|
||||
|
||||
EXPOSE 27015/udp
|
||||
EXPOSE 27016/udp
|
||||
# Entry Point Script
|
||||
CMD /start.sh
|
||||
0
config/adminlist.txt
Normal file
0
config/adminlist.txt
Normal file
0
config/banlist.txt
Normal file
0
config/banlist.txt
Normal file
Reference in New Issue
Block a user