forked from DockerDemos/DwarfFortressServer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
41 lines (31 loc) · 1.14 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
41
FROM ubuntu:latest
MAINTAINER Chris Collins <[email protected]>
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=America/Los_Angeles
ENV PKGS git x11vnc wget python3 python-is-python3 unzip xvfb curl tar bzip2 runit
ENV DFPKGS libgtk2.0-0 libglu1-mesa libsdl-image1.2 libsdl-sound1.2 libsdl-ttf2.0-0 libopenal1 net-tools
ENV NOVNC https://github.com/kanaka/noVNC.git
ENV DF http://www.bay12games.com/dwarves/df_43_05_linux.tar.bz2
ENV DISPLAY :1
RUN apt-get update
RUN apt-get install -y $PKGS $DFPKGS
RUN git clone $NOVNC
WORKDIR /noVNC
RUN ln -s vnc.html index.html
WORKDIR /
# Download Dwarf Fortress
RUN curl -ssL $DF | tar -xj
# Disable Sound to prevent errors
RUN sed -i 's/SOUND:YES/SOUND:NO/' /df_linux/data/init/init.txt
# Run in fullscreen
RUN sed -i 's/WINDOWED:YES/WINDOWED:NO/' /df_linux/data/init/init.txt
# Runit config
RUN bash -c "mkdir -p /etc/service/{X11vnc,noVNC,df}"
ADD X11vnc.run /etc/service/X11vnc/run
ADD noVNC.run /etc/service/noVNC/run
ADD df.run /etc/service/df/run
#
RUN rm /df_linux/libs/libstdc++.so.6 /df_linux/libs/libgcc_s.so.1
RUN chmod -R +x /etc/service
EXPOSE 6080
CMD [ "/usr/bin/runsvdir", "-P", "/etc/service" ]