generated from FragSoc/steam-game-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
45 lines (36 loc) · 1.09 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
ARG BASE_IMAGE=fragsoc/steamcmd-wine-xvfb
FROM rustagainshell/rash:1.7.0 AS rash
FROM ${BASE_IMAGE} AS steambuild
MAINTAINER Ryan Smith <[email protected]>
MAINTAINER Laura Demkowicz-Duffy <[email protected]>
USER root
ENV INSTALL_LOC="/blackwake"
ENV HOME=$INSTALL_LOC
WORKDIR /
# Setup directory structure and permissions
ARG UID=999
ARG GID=999
RUN groupadd -g $GID blackwake && \
useradd -m -s /bin/false -u $UID -g blackwake blackwake && \
mkdir -p $INSTALL_LOC && \
chown -R blackwake:blackwake $INSTALL_LOC
USER blackwake
# Install the blackwake server
ARG APPID=423410
ARG STEAM_BETA
RUN steamcmd \
+force_install_dir $INSTALL_LOC \
+login anonymous \
+@sSteamCmdForcePlatformType windows \
+app_update $APPID $STEAM_BETA validate \
# Steam libraries
+app_update 1007 validate \
+quit
COPY --from=rash /bin/rash /usr/bin/rash
COPY docker-entrypoint.rh /docker-entrypoint.rh
COPY Server.cfg.j2 /Server.cfg
# I/O
EXPOSE 25001/udp 27015/udp
# Expose and run
WORKDIR $INSTALL_LOC
ENTRYPOINT ["/usr/bin/rash", "/docker-entrypoint.rh"]