-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
58 lines (46 loc) · 1.51 KB
/
Dockerfile
File metadata and controls
58 lines (46 loc) · 1.51 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
FROM ubuntu:14.04
MAINTAINER fessoga <fessoga5@gmail.com>
RUN apt-get update && apt-get install -y --force-yes curl && \
apt-get install -y --force-yes bash \
curl \
openssh-client \
openssh-server \
fping \
vim \
sudo \
wget \
supervisor \
git \
rsyslog \
python-yaml \
python-pip \
python-apt \
ansible \
sendmail && \
mkdir -p /var/run/sshd && \
mkdir -p /var/log/supervisor && \
mkdir -p /opt/factorio
# Get timezone
RUN echo "Asia/Irkutsk" | tee /etc/timezone && \
dpkg-reconfigure --frontend noninteractive tzdata
# Add games saves
ADD saves/world.zip /opt/factorio/world.zip
# Add Scripts
ADD scripts/start.sh /start.sh
ADD scripts/get_install_factorio.sh /get_install_factorio.sh
ADD scripts/services.conf /services.conf
# Add template
ADD playbooks/roles /etc/ansible/roles
ADD playbooks/supervisor.yaml /etc/ansible/supervisor.yaml
ADD playbooks/factorio.yaml /etc/ansible/factorio.yaml
ADD playbooks/factorio_map.yaml /etc/ansible/factorio_map.yaml
ADD playbooks/server-settings.jinja /opt/factorio/server-settings.jinja
ADD playbooks/map-get-settings.jinja /opt/factorio/map-get-settings.jinja
RUN chmod 755 /start.sh
RUN chmod 755 /get_install_factorio.sh
# Create user, adding for group. Working for ssh
RUN /usr/sbin/useradd -d /home/ubuntu -s /bin/bash -p $(echo ubuntu | openssl passwd -1 -stdin) ubuntu &&\
/usr/sbin/usermod -a -G sudo ubuntu
EXPOSE 22
#CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisord.conf"]
CMD ["/start.sh"]