-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
39 lines (28 loc) · 1.25 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
FROM ansible/ubuntu14.04-ansible:stable
MAINTAINER Ben Cawkwell <bencawkwell@gmail.com>
# Install core
ENV DFPKGS unzip
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y $DFPKGS
# Add the ansible playbooks from github
ADD https://github.com/bencawkwell/ansible-dwarffortress/archive/v0.40.24-r3.zip /ansible.zip
RUN unzip /ansible.zip
RUN ln -s /ansible-dwarffortress-* /ansible
# Comment the line below if you do not want dfhack
RUN cd /ansible && ansible-playbook dfhack.yml --connection=local
# Uncomment the line below if you want to use the Phoebus tile set
#RUN cd /ansible && ansible-playbook tileset-phoebus.yml --connection=local
# Only pick ONE of the following display options:
# 2D mode using noVNC (control via a browser)
RUN cd /ansible && ansible-playbook novnc.yml --connection=local
# 2D mode using XPRA
#RUN cd /ansible && ansible-playbook xpra.yml --connection=local
# TEXT mode (in the console)
#RUN cd /ansible && ansible-playbook textmode.yml --connection=local
# Add scripts
ADD https://github.com/bencawkwell/supervisor-tools/raw/master/wait-for-daemons.sh /wait-for-daemons.sh
ADD start.sh /start.sh
RUN chmod +x /wait-for-daemons.sh /start.sh
ENV LANG C.UTF-8
VOLUME ["/df_linux/data/save"]
ENTRYPOINT ["/start.sh"]