forked from sdlhappylin/V-Rising-Server-Docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (26 loc) · 1.24 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM fragsoc/steamcmd-wine-xvfb
USER root
WORKDIR /
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
DEBIAN_FRONTEND=noninteractive apt install --no-install-recommends --no-install-suggests gosu winbind -y && \
DEBIAN_FRONTEND=noninteractive apt-get clean autoclean -y && \
DEBIAN_FRONTEND=noninteractive apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
ENV HOME="/vrising"
RUN mkdir -p /vrising/.wine/drive_c/VRisingServer/server-data
# Install Server
ARG APPID=1829350
ARG STEAM_BETAS
ARG STEAM_EPOCH
RUN ls -lha /vrising/.wine/drive_c/VRisingServer
RUN steamcmd force_install_dir /vrising/.wine/drive_c/VRisingServer
RUN steamcmd login anonymous
RUN steamcmd app_update $APPID $STEAM_BETAS validate
RUN steamcmd app_update 1007 validate
RUN steamcmd quit
WORKDIR /vrising/.wine/drive_c/VRisingServer
VOLUME /vrising/.wine/drive_c/VRisingServer/server-data
ENTRYPOINT ["/bin/bash", "/usr/local/bin/docker-entrypoint.sh"]
EXPOSE 9876/tcp 9876/udp 9877/tcp 9877/udp 27015/tcp 27015/udp
CMD ["tini", "--", "xvfb-run", "-a", "wine", "./VRisingServer.exe", "-persistentDataPath", "./server-data", "-logFile", "/vrising/.wine/drive_c/VRisingServer/server-data/VRisingServer.log"]