diff --git a/latest/Dockerfile b/latest/Dockerfile
index df6c0e9..3aea9c0 100644
--- a/latest/Dockerfile
+++ b/latest/Dockerfile
@@ -1,48 +1,44 @@
FROM hackebein/steamcmd:latest
ARG BASEDIR=/opt/garrysmod
+ONBUILD ARG BASEDIR=$BASEDIR
ENV BASEDIR=$BASEDIR \
PORT="27015" \
TICKRATE="66" \
- WORKSHOPCOLLECTIONID="" \
+ MAXPLAYERS="16" \
#http://steamcommunity.com/dev/apikey
AUTHKEY="" \
+ WORKSHOPCOLLECTIONID="" \
CLIENTPORT="27005" \
+ # sandbox or terrortown
GAMEMODE="sandbox" \
MAP="gm_flatgrass" \
#http://steamcommunity.com/dev/managegameservers APPID: 4000
GLST="" \
CONFIG="server.cfg" \
- MAXPLAYERS="16" \
- LOADURLIMG="http://www.pixelstalk.net/wp-content/uploads/2016/03/Cracked-Screen-Background-cute.jpg" \
- LOADURL="data:text/html,
" \
CUSTOMPARAMETERS=""
RUN apt-get update -q && \
apt-get install -yqq lib32tinfo5 && \
apt-get clean && \
- rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
-
-RUN /usr/games/steamcmd \
- +login anonymous \
- +force_install_dir $BASEDIR \
- # cstrike
- +app_update 232330 -validate -language en \
- # garrysmod
- +app_update 4020 -validate -language en \
- +quit && \
+ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
+ /usr/games/steamcmd \
+ +login anonymous \
+ +force_install_dir $BASEDIR \
+ # cstrike
+ +app_update 232330 -validate -language en \
+ # garrysmod
+ +app_update 4020 -validate -language en \
+ +quit && \
rm -rf $BASEDIR/garrysmod/cfg/*
COPY cfg $BASEDIR/garrysmod/cfg
-VOLUME [ "$BASEDIR/garrysmod/volume" ]
-
WORKDIR $BASEDIR
-EXPOSE 27015/udp 27015/tcp
+EXPOSE 27015/udp
-ENTRYPOINT []
CMD [ \
"sh", \
"-c", \
@@ -51,14 +47,13 @@ CMD [ \
-strictportbind \
-port ${PORT} \
-tickrate ${TICKRATE} \
- +host_workshop_collection ${WORKSHOPCOLLECTIONID} \
+ -maxplayers ${MAXPLAYERS} \
-authkey ${AUTHKEY} \
+ +host_workshop_collection ${WORKSHOPCOLLECTIONID} \
+clientport ${CLIENTPORT} \
+gamemode ${GAMEMODE} \
+map ${MAP} \
+sv_setsteamaccount ${GLST} \
+servercfgfile ${CONFIG} \
- -maxplayers ${MAXPLAYERS} \
- +sv_loadingurl ${LOADURL} \
${CUSTOMPARAMETERS}" \
]
\ No newline at end of file
diff --git a/latest/cfg/sandbox.cfg b/latest/cfg/sandbox.cfg
new file mode 100644
index 0000000..a05b90e
--- /dev/null
+++ b/latest/cfg/sandbox.cfg
@@ -0,0 +1,4 @@
+// Garry's Mod - sandbox - Config
+// https://github.com/garrynewman/garrysmod/blob/master/garrysmod/gamemodes/sandbox/sandbox.txt
+exec server.cfg
+exec my.sandbox.cfg
\ No newline at end of file
diff --git a/latest/cfg/server.cfg b/latest/cfg/server.cfg
index e5b2ac9..0a4391c 100644
--- a/latest/cfg/server.cfg
+++ b/latest/cfg/server.cfg
@@ -1,2 +1,3 @@
// Garry's Mod - Config
-exec ../volume/server.cfg
\ No newline at end of file
+// https://developer.valvesoftware.com/wiki/Console_Command_List
+exec my.server.cfg
\ No newline at end of file
diff --git a/latest/cfg/terrortown.cfg b/latest/cfg/terrortown.cfg
new file mode 100644
index 0000000..1ab13d9
--- /dev/null
+++ b/latest/cfg/terrortown.cfg
@@ -0,0 +1,4 @@
+// Garry's Mod - terrortown - Config
+// https://github.com/garrynewman/garrysmod/blob/master/garrysmod/gamemodes/terrortown/terrortown.txt
+exec server.cfg
+exec my.terrortown.cfg
\ No newline at end of file
diff --git a/minimal/Dockerfile b/minimal/Dockerfile
index c480827..5405531 100644
--- a/minimal/Dockerfile
+++ b/minimal/Dockerfile
@@ -1,46 +1,42 @@
FROM hackebein/steamcmd:latest
ARG BASEDIR=/opt/garrysmod
+ONBUILD ARG BASEDIR=$BASEDIR
ENV BASEDIR=$BASEDIR \
PORT="27015" \
TICKRATE="66" \
- WORKSHOPCOLLECTIONID="" \
+ MAXPLAYERS="16" \
#http://steamcommunity.com/dev/apikey
AUTHKEY="" \
+ WORKSHOPCOLLECTIONID="" \
CLIENTPORT="27005" \
+ # sandbox or terrortown
GAMEMODE="sandbox" \
MAP="gm_flatgrass" \
#http://steamcommunity.com/dev/managegameservers APPID: 4000
GLST="" \
CONFIG="server.cfg" \
- MAXPLAYERS="16" \
- LOADURLIMG="http://www.pixelstalk.net/wp-content/uploads/2016/03/Cracked-Screen-Background-cute.jpg" \
- LOADURL="data:text/html,
" \
CUSTOMPARAMETERS=""
RUN apt-get update -q && \
apt-get install -yqq lib32tinfo5 && \
apt-get clean && \
- rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
-
-RUN /usr/games/steamcmd \
- +login anonymous \
- +force_install_dir $BASEDIR \
- # garrysmod
- +app_update 4020 -validate -language en \
- +quit && \
+ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
+ /usr/games/steamcmd \
+ +login anonymous \
+ +force_install_dir $BASEDIR \
+ # garrysmod
+ +app_update 4020 -validate -language en \
+ +quit && \
rm -rf $BASEDIR/garrysmod/cfg/*
COPY cfg $BASEDIR/garrysmod/cfg
-VOLUME [ "$BASEDIR/garrysmod/volume" ]
-
WORKDIR $BASEDIR
-EXPOSE 27015/udp 27015/tcp
+EXPOSE 27015/udp
-ENTRYPOINT []
CMD [ \
"sh", \
"-c", \
@@ -49,14 +45,13 @@ CMD [ \
-strictportbind \
-port ${PORT} \
-tickrate ${TICKRATE} \
- +host_workshop_collection ${WORKSHOPCOLLECTIONID} \
+ -maxplayers ${MAXPLAYERS} \
-authkey ${AUTHKEY} \
+ +host_workshop_collection ${WORKSHOPCOLLECTIONID} \
+clientport ${CLIENTPORT} \
+gamemode ${GAMEMODE} \
+map ${MAP} \
+sv_setsteamaccount ${GLST} \
+servercfgfile ${CONFIG} \
- -maxplayers ${MAXPLAYERS} \
- +sv_loadingurl ${LOADURL} \
${CUSTOMPARAMETERS}" \
]
\ No newline at end of file
diff --git a/minimal/cfg/sandbox.cfg b/minimal/cfg/sandbox.cfg
new file mode 100644
index 0000000..a05b90e
--- /dev/null
+++ b/minimal/cfg/sandbox.cfg
@@ -0,0 +1,4 @@
+// Garry's Mod - sandbox - Config
+// https://github.com/garrynewman/garrysmod/blob/master/garrysmod/gamemodes/sandbox/sandbox.txt
+exec server.cfg
+exec my.sandbox.cfg
\ No newline at end of file
diff --git a/minimal/cfg/server.cfg b/minimal/cfg/server.cfg
index e5b2ac9..0a4391c 100644
--- a/minimal/cfg/server.cfg
+++ b/minimal/cfg/server.cfg
@@ -1,2 +1,3 @@
// Garry's Mod - Config
-exec ../volume/server.cfg
\ No newline at end of file
+// https://developer.valvesoftware.com/wiki/Console_Command_List
+exec my.server.cfg
\ No newline at end of file
diff --git a/minimal/cfg/terrortown.cfg b/minimal/cfg/terrortown.cfg
new file mode 100644
index 0000000..1ab13d9
--- /dev/null
+++ b/minimal/cfg/terrortown.cfg
@@ -0,0 +1,4 @@
+// Garry's Mod - terrortown - Config
+// https://github.com/garrynewman/garrysmod/blob/master/garrysmod/gamemodes/terrortown/terrortown.txt
+exec server.cfg
+exec my.terrortown.cfg
\ No newline at end of file
diff --git a/recommended/Dockerfile b/recommended/Dockerfile
index df6c0e9..3aea9c0 100644
--- a/recommended/Dockerfile
+++ b/recommended/Dockerfile
@@ -1,48 +1,44 @@
FROM hackebein/steamcmd:latest
ARG BASEDIR=/opt/garrysmod
+ONBUILD ARG BASEDIR=$BASEDIR
ENV BASEDIR=$BASEDIR \
PORT="27015" \
TICKRATE="66" \
- WORKSHOPCOLLECTIONID="" \
+ MAXPLAYERS="16" \
#http://steamcommunity.com/dev/apikey
AUTHKEY="" \
+ WORKSHOPCOLLECTIONID="" \
CLIENTPORT="27005" \
+ # sandbox or terrortown
GAMEMODE="sandbox" \
MAP="gm_flatgrass" \
#http://steamcommunity.com/dev/managegameservers APPID: 4000
GLST="" \
CONFIG="server.cfg" \
- MAXPLAYERS="16" \
- LOADURLIMG="http://www.pixelstalk.net/wp-content/uploads/2016/03/Cracked-Screen-Background-cute.jpg" \
- LOADURL="data:text/html,
" \
CUSTOMPARAMETERS=""
RUN apt-get update -q && \
apt-get install -yqq lib32tinfo5 && \
apt-get clean && \
- rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
-
-RUN /usr/games/steamcmd \
- +login anonymous \
- +force_install_dir $BASEDIR \
- # cstrike
- +app_update 232330 -validate -language en \
- # garrysmod
- +app_update 4020 -validate -language en \
- +quit && \
+ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
+ /usr/games/steamcmd \
+ +login anonymous \
+ +force_install_dir $BASEDIR \
+ # cstrike
+ +app_update 232330 -validate -language en \
+ # garrysmod
+ +app_update 4020 -validate -language en \
+ +quit && \
rm -rf $BASEDIR/garrysmod/cfg/*
COPY cfg $BASEDIR/garrysmod/cfg
-VOLUME [ "$BASEDIR/garrysmod/volume" ]
-
WORKDIR $BASEDIR
-EXPOSE 27015/udp 27015/tcp
+EXPOSE 27015/udp
-ENTRYPOINT []
CMD [ \
"sh", \
"-c", \
@@ -51,14 +47,13 @@ CMD [ \
-strictportbind \
-port ${PORT} \
-tickrate ${TICKRATE} \
- +host_workshop_collection ${WORKSHOPCOLLECTIONID} \
+ -maxplayers ${MAXPLAYERS} \
-authkey ${AUTHKEY} \
+ +host_workshop_collection ${WORKSHOPCOLLECTIONID} \
+clientport ${CLIENTPORT} \
+gamemode ${GAMEMODE} \
+map ${MAP} \
+sv_setsteamaccount ${GLST} \
+servercfgfile ${CONFIG} \
- -maxplayers ${MAXPLAYERS} \
- +sv_loadingurl ${LOADURL} \
${CUSTOMPARAMETERS}" \
]
\ No newline at end of file
diff --git a/recommended/cfg/sandbox.cfg b/recommended/cfg/sandbox.cfg
new file mode 100644
index 0000000..a05b90e
--- /dev/null
+++ b/recommended/cfg/sandbox.cfg
@@ -0,0 +1,4 @@
+// Garry's Mod - sandbox - Config
+// https://github.com/garrynewman/garrysmod/blob/master/garrysmod/gamemodes/sandbox/sandbox.txt
+exec server.cfg
+exec my.sandbox.cfg
\ No newline at end of file
diff --git a/recommended/cfg/server.cfg b/recommended/cfg/server.cfg
index e5b2ac9..0a4391c 100644
--- a/recommended/cfg/server.cfg
+++ b/recommended/cfg/server.cfg
@@ -1,2 +1,3 @@
// Garry's Mod - Config
-exec ../volume/server.cfg
\ No newline at end of file
+// https://developer.valvesoftware.com/wiki/Console_Command_List
+exec my.server.cfg
\ No newline at end of file
diff --git a/recommended/cfg/terrortown.cfg b/recommended/cfg/terrortown.cfg
new file mode 100644
index 0000000..1ab13d9
--- /dev/null
+++ b/recommended/cfg/terrortown.cfg
@@ -0,0 +1,4 @@
+// Garry's Mod - terrortown - Config
+// https://github.com/garrynewman/garrysmod/blob/master/garrysmod/gamemodes/terrortown/terrortown.txt
+exec server.cfg
+exec my.terrortown.cfg
\ No newline at end of file