21 lines
584 B
Docker
Raw Normal View History

2020-02-13 13:41:41 +00:00
##############################################
# 7d2d dedicated server
##############################################
FROM epicmorg/linux-steamcmd
2020-02-13 17:33:44 +03:00
LABEL maintainer="Guah0s"
2020-02-13 09:52:29 +00:00
2020-02-13 13:41:41 +00:00
#Install 7d2d dedicated server
2020-02-13 17:33:44 +03:00
RUN steamcmd +login anonymous +force_install_dir ${VALVE_GAME_FOLDER} +app_update 294420 +quit
2020-02-13 13:41:41 +00:00
#Copy run script and set permissions
2020-02-13 17:33:44 +03:00
COPY serverconfig.xml ${VALVE_VOLUME_FOLDER}/serverconfig.xml
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
WORKDIR ${VALVE_GAME_FOLDER}
VOLUME ${VALVE_VOLUME_FOLDER}
2020-02-13 13:41:41 +00:00
#Run the server
2020-02-13 17:33:44 +03:00
ENTRYPOINT ${VALVE_GAME_FOLDER}/run_7d2d.sh