From 02c6d85c3a8080fc9324228e15ab259fb1cc7628 Mon Sep 17 00:00:00 2001 From: Matthew Baggett Date: Tue, 22 Oct 2019 12:58:55 +0200 Subject: [PATCH] DL3020 --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6044ad2..dd009ce 100644 --- a/Dockerfile +++ b/Dockerfile @@ -68,7 +68,7 @@ COPY php+cli/psysh-config.php /root/.config/psysh/config.php FROM php-cli AS php-cli-onbuild # 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. ONBUILD RUN composer install; exit 0 @@ -143,7 +143,7 @@ HEALTHCHECK --interval=30s --timeout=3s \ FROM php-nginx AS php-nginx-onbuild # 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. ONBUILD RUN composer install; exit 0 @@ -192,7 +192,7 @@ RUN rm -fr /var/www/html && \ FROM php-apache AS php-apache-onbuild # 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. ONBUILD RUN composer install --ignore-platform-reqs; exit 0 @@ -290,9 +290,9 @@ RUN apt-get -qq update && \ FROM nodejs AS nodejs-onbuild -ONBUILD ADD ./ /app +ONBUILD COPY ./ /app FROM nodejs-compiler AS nodejs-compiler-onbuild -ONBUILD ADD ./ /app +ONBUILD COPY ./ /app