mirror of
https://github.com/ZorgCC/docker-games-scripts.git
synced 2025-02-23 11:51:06 +03:00
7d2d container build fix
This commit is contained in:
parent
8d43873f29
commit
262cb26608
@ -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
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
|
#!/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
|
Loading…
x
Reference in New Issue
Block a user