-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
65 lines (33 loc) · 972 Bytes
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
FROM ubuntu:18.04
Run apt-get update -y
Run apt-get install lirc -y
Run apt-get install python-pip -y
Run pip install flask
Run apt-get -y install openssh-client
Run apt-get -y install sshpass
Run apt-get install apache2 -y
Run apt-get install libapache2-mod-wsgi -y
WORKDIR /etc/apache2
Run a2enmod headers
COPY conf/apache2.conf .
COPY conf/ports.conf .
WORKDIR /etc/apache2/sites-available
COPY conf/clockwerxWS.conf .
WORKDIR /var/www
Run mkdir -p clockwerxWS
WORKDIR /var/www/clockwerxWS
COPY app app
COPY conf/clockwerxWS.wsgi .
Run mkdir -p conf
COPY conf/clockDefs.json conf/
run mkdir -p logs
Run chmod 777 logs
WORKDIR /etc/apache2/sites-available
Run a2dissite 000-default
Run a2ensite clockwerxWS.conf
Run apt-get install supervisor -y
Run mkdir -p /var/log/supervisor
Run mkdir -p /etc/supervisor/conf.d
COPY conf/supervisor.conf /etc/conf.d/supervisor.conf
WORKDIR /
CMD ["supervisord", "-c", "/etc/conf.d/supervisor.conf"]