-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
29 lines (22 loc) · 935 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM ubuntu:latest
RUN \
apt-get update -qq -y &&\
apt-get install -y wget lib32gcc1 &&\
apt-get install -y less vim telnet iproute2 # Just for debugging
RUN \
mkdir -p /steamcmd &&\
cd /steamcmd &&\
wget http://media.steampowered.com/installer/steamcmd_linux.tar.gz && \
tar xzvf steamcmd_linux.tar.gz && \
rm steamcmd_linux.tar.gz
COPY install.steam /steam/install.steam
RUN \
mkdir -p /7-days-to-die &&\
cd /steamcmd &&\
./steamcmd.sh +runscript /steam/install.steam
COPY serverconfig.xml /7-days-to-die/serverconfig.xml
COPY startserver.sh /7-days-to-die/startserver.sh
EXPOSE 26900/TCP 26900-26903/udp
# EXPOSE 8080
EXPOSE 8081
CMD ["bash", "-c", "echo \"password: $QLUB_SERVER_PASSWORD\" && sed -i -e \"s/QLUB_SERVER_PASSWORD/$QLUB_SERVER_PASSWORD/g\" /7-days-to-die/serverconfig.xml && exec sh /7-days-to-die/startserver.sh -configfile=serverconfig.xml"]