Browse Source

Optimized backend Dockerfile

tags/v2.0.2
Robin Thoni 4 years ago
parent
commit
1728ce7ed0
Signed by: Robin THONI <robin@rthoni.com> GPG Key ID: 4E09DEF46B99E61E
1 changed files with 7 additions and 1 deletions
  1. 7
    1
      backend/Dockerfile

+ 7
- 1
backend/Dockerfile View File

37
 
37
 
38
 COPY apache2.conf /etc/apache2/apache2.conf
38
 COPY apache2.conf /etc/apache2/apache2.conf
39
 
39
 
40
-COPY ./backend/ /var/www/html/
40
+COPY ./backend/composer.* /var/www/html/
41
+
42
+COPY ./backend/database/ /var/www/html/database/
43
+
44
+COPY ./backend/tests/ /var/www/html/tests/
41
 
45
 
42
 RUN cd /var/www/html && composer install
46
 RUN cd /var/www/html && composer install
43
 
47
 
51
 
55
 
52
 COPY env "${CONFIG_DIR}"
56
 COPY env "${CONFIG_DIR}"
53
 
57
 
58
+COPY ./backend/ /var/www/html/
59
+
54
 RUN chmod -R 777 /var/www/html/storage/
60
 RUN chmod -R 777 /var/www/html/storage/
55
         #&& ln -s /dev/stdout /var/www/html/storage/logs/lumen.log
61
         #&& ln -s /dev/stdout /var/www/html/storage/logs/lumen.log
56
 
62
 

Loading…
Cancel
Save