-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
38 lines (27 loc) · 958 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
30
31
32
33
34
35
36
37
38
FROM ubuntu:14.04
MAINTAINER Luke Nimtz <[email protected]>
ENV DEBIAN_FRONTEND noninteractive
# install dependencies
RUN dpkg --add-architecture i386
RUN apt-get update
RUN apt-get install -y libstdc++6:i386 libgcc1:i386 libcurl4-gnutls-dev:i386
# install steam
WORKDIR /root/steamcmd
ADD https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz ./
RUN tar -xvzf steamcmd_linux.tar.gz
# download and install dst (this part can take a while)
ADD dst-update.sh /bin/dst-update.sh
RUN chmod +x /bin/dst-update.sh
RUN /bin/dst-update.sh
ADD entrypoint.sh /bin/entrypoint.sh
RUN chmod +x /bin/entrypoint.sh
# add server configs
ADD configs/ /root/.klei/DoNotStarveTogether/Cluster_1/
VOLUME /root/.klei/
# expose master port (only master will listen on this)
EXPOSE 10889
# run server
# this entrypoint will accept a -shard run option for the server
# (see docker-compose file)
WORKDIR /root/dst/bin
ENTRYPOINT ["/bin/entrypoint.sh"]