Browse Source

Optimized backend Dockerfile

tags/v2.0.2
Robin Thoni 3 months 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,7 +37,11 @@ RUN rm -rf /var/log/* &&\
37 37
 
38 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 46
 RUN cd /var/www/html && composer install
43 47
 
@@ -51,6 +55,8 @@ RUN groupadd -g "${SPI_USER_UID}" spi && usermod -a -G spi www-data
51 55
 
52 56
 COPY env "${CONFIG_DIR}"
53 57
 
58
+COPY ./backend/ /var/www/html/
59
+
54 60
 RUN chmod -R 777 /var/www/html/storage/
55 61
         #&& ln -s /dev/stdout /var/www/html/storage/logs/lumen.log
56 62
 

Loading…
Cancel
Save