7d2d container build fix

This commit is contained in:
STAM 2020-02-13 17:33:44 +03:00
parent 8d43873f29
commit 262cb26608
4 changed files with 16 additions and 8 deletions

View File

@ -2,16 +2,19 @@
# 7d2d dedicated server # 7d2d dedicated server
############################################## ##############################################
FROM epicmorg/linux-steamcmd FROM epicmorg/linux-steamcmd
LABEL maintainer="EpicMorg DevTeam, developer@epicm.org" LABEL maintainer="Guah0s"
WORKDIR $VALVE_GAME_FOLDER
#Install 7d2d dedicated server #Install 7d2d dedicated server
RUN steamcmd +login anonymous +force_install_dir $VALVE_GAME_FOLDER +app_update 294420 +quit && \ RUN steamcmd +login anonymous +force_install_dir ${VALVE_GAME_FOLDER} +app_update 294420 +quit
mkdir $VALVE_VOLUME_FOLDER
#Copy run script and set permissions #Copy run script and set permissions
COPY run_7d2d.sh $VALVE_GAME_FOLDER/run_7d2d.sh && chmod +x $VALVE_GAME_FOLDER/run_7d2d.sh 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}
#Run the server #Run the server
ENTRYPOINT $VALVE_GAME_FOLDER/run_7d2d.sh ENTRYPOINT ${VALVE_GAME_FOLDER}/run_7d2d.sh

5
linux/7d2d/Makefile Normal file
View File

@ -0,0 +1,5 @@
all: emgcmd
emgcmd:
docker build --compress -t epicmorg/linux-7d2d .
docker push epicmorg/linux-7d2d

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/bash
$VALVE_GAME_FOLDER/7DaysToDieServer.x86_64 \ $VALVE_GAME_FOLDER/startserver.sh \
-logfile $VALVE_VOLUME_FOLDER/7d2d_output_log__`date +%Y-%m-%d__%H-%M-%S`.txt \ -logfile $VALVE_VOLUME_FOLDER/7d2d_output_log__`date +%Y-%m-%d__%H-%M-%S`.txt \
-quit -batchmode -nographics -dedicated -configfile=$VALVE_VOLUME_FOLDER/serverconfig.xml -quit -batchmode -nographics -dedicated -configfile=$VALVE_VOLUME_FOLDER/serverconfig.xml