-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
49 lines (35 loc) · 1.12 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
46
47
48
49
FROM lanopsdev/gameserver-steamcmd:latest
MAINTAINER Thornton Phillis ([email protected])
# Env - Defaults
ENV SRCDS_PORT 27015
# Env - Server
ENV SRCDS_SRV_DIR /home/steam/hl2mp
ENV SRCDS_APP_ID 232370
# Env - SourceMod & MetaMod
ENV SOURCEMOD_VERSION_MAJOR 1.10
ENV SOURCEMOD_VERSION_MINOR 0
ENV SOURCEMOD_BUILD 6276
ENV METAMOD_VERSION_MAJOR 1.10
ENV METAMOD_VERSION_MINOR 7
ENV METAMOD_BUILD 970
# Add Start Script
RUN mkdir -p ${SRCDS_SRV_DIR}
RUN { \
echo '@ShutdownOnFailedCommand 1'; \
echo '@NoPromptForPassword 1'; \
echo 'login anonymous'; \
echo 'force_install_dir $SRCDS_SRV_DIR'; \
echo 'app_update $SRCDS_APP_ID'; \
echo 'quit'; \
} > /home/steam/hl2mp_update.txt
ADD resources/root/startServer.sh /home/steam/startServer.sh
# Pre Load LanOps Server Configs
RUN mkdir -p ${SRCDS_SRV_DIR}/hl2mp/cfg/
COPY resources/root/cfg /tmp/cfg/
# Expose Ports
EXPOSE ${SRCDS_PORT}
EXPOSE ${SRCDS_PORT}/udp
EXPOSE 27020 27005 51840
# Start Server
ENTRYPOINT ["/home/steam/startServer.sh"]
CMD ["+sv_pure 1 +sv_region -1 +sv_lan 0 +exec server.cfg +map dm_lockdown +ip 0.0.0.0"]