|
@@ -6,13 +6,20 @@ MAINTAINER Robin Thoni <robin@rthoni.com>
|
6
|
6
|
ARG CONFIG_DIR=/etc/default/config-files/
|
7
|
7
|
|
8
|
8
|
RUN apt-get update && apt-get -y install\
|
|
9
|
+ curl\
|
|
10
|
+ git\
|
|
11
|
+ unzip\
|
9
|
12
|
apache2=2.4.*\
|
10
|
13
|
libapache2-mod-php5\
|
11
|
14
|
php5\
|
12
|
15
|
php5-mcrypt\
|
|
16
|
+ php5-imagick\
|
13
|
17
|
php5-gd &&\
|
14
|
18
|
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
15
|
19
|
|
|
20
|
+RUN curl https://getcomposer.org/composer.phar -o /usr/local/bin/composer \
|
|
21
|
+ && chmod +x /usr/local/bin/composer
|
|
22
|
+
|
16
|
23
|
RUN /usr/sbin/a2enmod rewrite &&\
|
17
|
24
|
rm -rf /var/www/html &&\
|
18
|
25
|
mkdir -p /var/lock/apache2 /var/run/apache2 /var/log/apache2 /var/www/html &&\
|
|
@@ -28,6 +35,13 @@ COPY apache2.conf /etc/apache2/apache2.conf
|
28
|
35
|
|
29
|
36
|
COPY ./backend/ /var/www/html/
|
30
|
37
|
|
|
38
|
+RUN cd /var/www/html && composer install
|
|
39
|
+
|
|
40
|
+COPY env "${CONFIG_DIR}"
|
|
41
|
+
|
|
42
|
+RUN chmod -R 777 /var/www/html/storage/
|
|
43
|
+ #&& ln -s /dev/stdout /var/www/html/storage/logs/lumen.log
|
|
44
|
+
|
31
|
45
|
COPY ./vars-vars /etc/vars-vars
|
32
|
46
|
|
33
|
47
|
COPY ./vars-files /etc/vars-files
|
|
@@ -36,8 +50,6 @@ COPY ./common.sh /common.sh
|
36
|
50
|
|
37
|
51
|
COPY ./run.sh /run.sh
|
38
|
52
|
|
39
|
|
-RUN mkdir "${CONFIG_DIR}"
|
40
|
|
-
|
41
|
53
|
EXPOSE 80
|
42
|
54
|
|
43
|
55
|
CMD ["/run.sh"]
|