mirror of
https://github.com/ZorgCC/docker-games-scripts.git
synced 2025-02-23 03:41:06 +03:00
7d2d container build fix
This commit is contained in:
parent
8d43873f29
commit
262cb26608
@ -2,16 +2,19 @@
|
||||
# 7d2d dedicated server
|
||||
##############################################
|
||||
FROM epicmorg/linux-steamcmd
|
||||
LABEL maintainer="EpicMorg DevTeam, developer@epicm.org"
|
||||
|
||||
WORKDIR $VALVE_GAME_FOLDER
|
||||
LABEL maintainer="Guah0s"
|
||||
|
||||
#Install 7d2d dedicated server
|
||||
RUN steamcmd +login anonymous +force_install_dir $VALVE_GAME_FOLDER +app_update 294420 +quit && \
|
||||
mkdir $VALVE_VOLUME_FOLDER
|
||||
RUN steamcmd +login anonymous +force_install_dir ${VALVE_GAME_FOLDER} +app_update 294420 +quit
|
||||
|
||||
#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
|
||||
ENTRYPOINT $VALVE_GAME_FOLDER/run_7d2d.sh
|
||||
ENTRYPOINT ${VALVE_GAME_FOLDER}/run_7d2d.sh
|
||||
|
5
linux/7d2d/Makefile
Normal file
5
linux/7d2d/Makefile
Normal file
@ -0,0 +1,5 @@
|
||||
all: emgcmd
|
||||
emgcmd:
|
||||
docker build --compress -t epicmorg/linux-7d2d .
|
||||
docker push epicmorg/linux-7d2d
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/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 \
|
||||
-quit -batchmode -nographics -dedicated -configfile=$VALVE_VOLUME_FOLDER/serverconfig.xml
|
Loading…
x
Reference in New Issue
Block a user