This commit is contained in:
Greyscale 2019-10-22 12:58:55 +02:00
parent a4a7d77d2f
commit 02c6d85c3a

View file

@ -68,7 +68,7 @@ COPY php+cli/psysh-config.php /root/.config/psysh/config.php
FROM php-cli AS php-cli-onbuild FROM php-cli AS php-cli-onbuild
# On build, add anything in with Dockerfile into /app # On build, add anything in with Dockerfile into /app
ONBUILD ADD ./ /app ONBUILD COPY ./ /app
# If composer.json/composer.lock exist, do a composer install. # If composer.json/composer.lock exist, do a composer install.
ONBUILD RUN composer install; exit 0 ONBUILD RUN composer install; exit 0
@ -143,7 +143,7 @@ HEALTHCHECK --interval=30s --timeout=3s \
FROM php-nginx AS php-nginx-onbuild FROM php-nginx AS php-nginx-onbuild
# On build, add anything in with Dockerfile into /app # On build, add anything in with Dockerfile into /app
ONBUILD ADD ./ /app ONBUILD COPY ./ /app
# If composer.json/composer.lock exist, do a composer install. # If composer.json/composer.lock exist, do a composer install.
ONBUILD RUN composer install; exit 0 ONBUILD RUN composer install; exit 0
@ -192,7 +192,7 @@ RUN rm -fr /var/www/html && \
FROM php-apache AS php-apache-onbuild FROM php-apache AS php-apache-onbuild
# On build, add anything in with Dockerfile into /app # On build, add anything in with Dockerfile into /app
ONBUILD ADD ./ /app ONBUILD COPY ./ /app
# If composer.json/composer.lock exist, do a composer install. # If composer.json/composer.lock exist, do a composer install.
ONBUILD RUN composer install --ignore-platform-reqs; exit 0 ONBUILD RUN composer install --ignore-platform-reqs; exit 0
@ -290,9 +290,9 @@ RUN apt-get -qq update && \
FROM nodejs AS nodejs-onbuild FROM nodejs AS nodejs-onbuild
ONBUILD ADD ./ /app ONBUILD COPY ./ /app
FROM nodejs-compiler AS nodejs-compiler-onbuild FROM nodejs-compiler AS nodejs-compiler-onbuild
ONBUILD ADD ./ /app ONBUILD COPY ./ /app