-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
43 lines (38 loc) · 941 Bytes
/
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
# Debian base image with SteamCMD
FROM cm2network/steamcmd:root
# DO NOT OVERRIDE THESE
ENV GMODID=4020 \
GMODDIR=/home/steam/garrysmod \
CSSID=232330 \
CSSDIR=/home/steam/css \
TF2ID=232250 \
TF2DIR=/home/steam/tf2 \
SERVERCFG=/home/steam/garrysmod/garrysmod/cfg/server.cfg \
MOUNTCFG=/home/steam/garrysmod/garrysmod/cfg/mount.cfg
# Environment variables
ENV HOSTNAME="A Garry's Mod Server" \
GMODPORT=27015 \
CLIENTPORT=27005 \
MAXPLAYERS=20 \
GAMEMODE=sandbox \
GAMEMAP=gm_flatgrass \
ALLTALK=1 \
VOICEICON=0 \
MAXFILESIZE=1024 \
WORKSHOPID="" \
DOWNLOADURL="" \
LOADINGURL="" \
PASSWORD="" \
RCONPASSWORD="" \
LOGINTOKEN=""
# Add files
WORKDIR /home/steam/
COPY --chown=steam mount.cfg autoupdatescript.txt ./
COPY --chown=steam easygmod.sh .
RUN chmod a+rx easygmod.sh
# Start main script
USER steam
CMD ./easygmod.sh
# Set up container
EXPOSE 27015/udp 27005/udp
VOLUME ${GMODDIR} ${CSSDIR} ${TF2DIR}