-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
23 lines (21 loc) · 1.42 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
FROM debian:latest
RUN dpkg --add-architecture i386 && \
apt-get update && \
apt-get install --no-install-recommends nano net-tools netcat-traditional ca-certificates lib32stdc++6 libcurl3-gnutls:i386 libcurl3-gnutls lib32gcc-s1 wget unzip gosu screen -y && \
rm -rf /var/lib/apt/lists/* && \
chmod +s /usr/sbin/gosu && \
groupadd -g 1001 -o dst && \
useradd -g 1001 -u 1001 -mr -d /home/dst -o -s /bin/bash dst
USER dst
WORKDIR /home/dst
COPY --chown=dst:dst install.sh /home/dst/install.sh
RUN chmod +x /home/dst/install.sh && /home/dst/install.sh
COPY --chown=dst:dst example_world/ /home/dst/.klei/DoNotStarveTogether/example_world/
COPY --chown=dst:dst example_Reforged/ /home/dst/.klei/DoNotStarveTogether/example_Reforged/
COPY --chown=dst:dst example_Regorge/ /home/dst/.klei/DoNotStarveTogether/example_Regorge/
COPY --chown=dst:dst example_shipwrecked/ /home/dst/.klei/DoNotStarveTogether/example_shipwrecked/
COPY --chown=dst:dst tools/* run.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/*
ENV GOSU_PLEASE_LET_ME_BE_COMPLETELY_INSECURE_I_GET_TO_KEEP_ALL_THE_PIECES="I've seen things you people wouldn't believe. Attack ships on fire off the shoulder of Orion. I watched C-beams glitter in the dark near the Tannhäuser Gate. All those moments will be lost in time, like tears in rain. Time to die."
CMD ["run.sh"]
HEALTHCHECK --start-period=2m --interval=5s --retries=28 CMD grep "Sim paused" /home/dst/screenlog.0