Sfoglia il codice sorgente

Optimized backend Dockerfile

tags/v2.0.2
Robin Thoni 4 anni fa
parent
commit
1728ce7ed0
Firmato da: Robin THONI <robin@rthoni.com> ID Chiave GPG: 4E09DEF46B99E61E
1 ha cambiato i file con 7 aggiunte e 1 eliminazioni
  1. 7
    1
      backend/Dockerfile

+ 7
- 1
backend/Dockerfile Vedi 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…
Annulla
Salva