-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.hlds
More file actions
38 lines (33 loc) · 1.02 KB
/
Dockerfile.hlds
File metadata and controls
38 lines (33 loc) · 1.02 KB
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
FROM docker-strike/steamcmd
ARG STEAM_USERNAME=anonymous
ARG STEAM_PASSWORD=""
ARG GAME=cstrike
ARG PORT=27015
# Download the gameserver files from Steam
# Note: Chained the update and config commands because of the good'ol steamcmd bug
RUN steamcmd +logout \
+@ShutdownOnFailedCommand 0 \
+@NoPromptForPassword 1 \
+@sSteamCmdForcePlatformType linux \
+@sSteamCmdForcePlatformBitness 32 \
+force_install_dir $HOME/hlds/ \
+login ${STEAM_USERNAME} ${STEAM_PASSWORD} \
+app_update 90 validate \
+app_update 90 validate \
+app_update 90 validate \
+app_set_config 90 mod ${GAME} validate \
+app_set_config 90 mod ${GAME} validate \
+app_set_config 90 mod ${GAME} validate \
+app_update 90 validate \
+app_update 90 validate \
+app_update 90 validate \
+quit
# Change user before starting the server
ENV USER=steam
USER steam
# Run Half-Life Dedicated Server
COPY --chown=steam:steam entrypoint.sh $HOME/hlds/entrypoint.sh
WORKDIR $HOME/hlds/
ENTRYPOINT ["/home/steam/hlds/entrypoint.sh"]
# Expose HLDS Port
EXPOSE ${PORT}