-
Notifications
You must be signed in to change notification settings - Fork 60
/
Dockerfile
40 lines (32 loc) · 1.35 KB
/
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
39
40
FROM debian:latest
MAINTAINER Caio Mathielo <mathielo@gmail.com>
LABEL \
description="Don't Starve Together dedicated server" \
source="https://github.com/mathielo/dst-dedicated-server"
# Create specific user to run DST server
RUN useradd -ms /bin/bash/ dst
WORKDIR /home/dst
# Install required packages
RUN set -x && \
dpkg --add-architecture i386 && \
apt-get update && apt-get upgrade -y && \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y wget ca-certificates lib32gcc1 lib32stdc++6 libcurl4-gnutls-dev:i386 && \
# Download Steam CMD (https://developer.valvesoftware.com/wiki/SteamCMD#Downloading_SteamCMD)
wget -q -O - "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar zxvf - && \
chown -R dst:dst ./ && \
# Cleanup
apt-get autoremove --purge -y wget && \
apt-get clean && rm -rf /var/lib/apt/lists/*
USER dst
RUN mkdir -p .klei/DoNotStarveTogether server_dst/mods
# Install Don't Starve Together
RUN ./steamcmd.sh \
+@ShutdownOnFailedCommand 1 \
+@NoPromptForPassword 1 \
+login anonymous \
+force_install_dir /home/dst/server_dst \
+app_update 343050 validate \
+quit
VOLUME ["/home/dst/.klei/DoNotStarveTogether", "/home/dst/server_dst/mods"]
COPY ["start-container-server.sh", "/home/dst/"]
ENTRYPOINT ["/home/dst/start-container-server.sh"]