2019-02-11 09:20:35 +01:00
|
|
|
FROM jusito/lgsm:latest
|
2018-09-23 10:13:38 +02:00
|
|
|
|
2019-02-11 09:20:35 +01:00
|
|
|
ENV LGSM_GAMESERVER="gmodserver" \
|
|
|
|
LGSM_EXECUTABLE="gmodserver" \
|
|
|
|
LGSM_STOP_SCRIPT="/home/stop.sh" \
|
|
|
|
GAMECONFIG_SCRIPT="/home/config.sh" \
|
2018-09-25 12:09:10 +02:00
|
|
|
\
|
2019-02-11 09:20:35 +01:00
|
|
|
WORKSHOP_COLLECTION_ID="" \
|
2018-10-03 00:50:19 +02:00
|
|
|
SERVER_NAME="" \
|
|
|
|
SERVER_PASSWORD="" \
|
|
|
|
SERVER_VOICE_ENABLE="1" \
|
|
|
|
\
|
2018-09-25 12:25:21 +02:00
|
|
|
INSTALL_CSS=false \
|
|
|
|
INSTALL_HL2=false \
|
|
|
|
INSTALL_HLDM=false \
|
|
|
|
INSTALL_TF2=false \
|
|
|
|
\
|
|
|
|
CSS_PATH="/home/steam/addons/css" \
|
|
|
|
HL2_PATH="/home/steam/addons/hl2" \
|
|
|
|
HLDM_PATH="/home/steam/addons/hldm" \
|
|
|
|
TF2_PATH="/home/steam/addons/tf2" \
|
|
|
|
\
|
2019-02-11 09:20:35 +01:00
|
|
|
USE_MY_REPLACER_CONFIG=false
|
2018-10-03 00:50:19 +02:00
|
|
|
|
2019-02-11 09:20:35 +01:00
|
|
|
COPY ["config.sh", "stop.sh", "forceWorkshopDownload.sh", "installAndMountAddons.sh", "/home/"]
|
2018-09-23 10:13:38 +02:00
|
|
|
|
2019-02-11 09:20:35 +01:00
|
|
|
RUN chown "$DOCKER_USER:$DOCKER_USER" "/home/config.sh" && \
|
|
|
|
chown "$DOCKER_USER:$DOCKER_USER" "/home/stop.sh" && \
|
|
|
|
chown "$DOCKER_USER:$DOCKER_USER" "/home/forceWorkshopDownload.sh" && \
|
|
|
|
chown "$DOCKER_USER:$DOCKER_USER" "/home/installAndMountAddons.sh" && \
|
2018-09-25 12:09:10 +02:00
|
|
|
\
|
2019-02-11 09:20:35 +01:00
|
|
|
chmod a=rx /home/config.sh && \
|
|
|
|
chmod a=rx /home/stop.sh && \
|
2018-09-25 20:15:40 +02:00
|
|
|
chmod a=rx /home/forceWorkshopDownload.sh && \
|
2019-02-11 09:20:35 +01:00
|
|
|
chmod a=rx /home/installAndMountAddons.sh
|
2018-09-25 16:18:01 +02:00
|
|
|
|
2018-09-25 12:25:21 +02:00
|
|
|
USER "$USER_ID:$GROUP_ID"
|
2018-09-23 10:13:38 +02:00
|
|
|
|
2019-02-11 09:20:35 +01:00
|
|
|
VOLUME "$SERVER_PATH"
|