|
@@ -4,9 +4,13 @@ FROM robinthoni/debian-multiarch:jessie
|
4
|
4
|
MAINTAINER Robin Thoni <robin@rthoni.com>
|
5
|
5
|
|
6
|
6
|
ARG CONFIG_DIR=/etc/default/config-files/
|
|
7
|
+ARG SPI_USER_UID=999
|
7
|
8
|
|
8
|
9
|
RUN apt-get update && apt-get -y install\
|
9
|
10
|
curl\
|
|
11
|
+ make\
|
|
12
|
+ build-essential\
|
|
13
|
+ gcc\
|
10
|
14
|
git\
|
11
|
15
|
unzip\
|
12
|
16
|
apache2=2.4.*\
|
|
@@ -37,6 +41,14 @@ COPY ./backend/ /var/www/html/
|
37
|
41
|
|
38
|
42
|
RUN cd /var/www/html && composer install
|
39
|
43
|
|
|
44
|
+RUN cd /tmp && git clone https://github.com/piface/libmcp23s17 && cd libmcp23s17 && make && make install && cd / && rm /tmp/libmcp23s17 -rf
|
|
45
|
+
|
|
46
|
+RUN cd /tmp && git clone https://github.com/piface/libpifacedigital && cd libpifacedigital && make && make install && cd / && rm /tmp/libpifacedigital -rf
|
|
47
|
+
|
|
48
|
+RUN cd /tmp && git clone https://git.rthoni.com/camotion/piface && cd piface && make && make install && cd / && rm /tmp/piface -rf
|
|
49
|
+
|
|
50
|
+RUN groupadd -g "${SPI_USER_UID}" spi && usermod -a -G spi www-data
|
|
51
|
+
|
40
|
52
|
COPY env "${CONFIG_DIR}"
|
41
|
53
|
|
42
|
54
|
RUN chmod -R 777 /var/www/html/storage/
|