From 6a28c9a80e89427000a730e43b3bfa3469c22fa0 Mon Sep 17 00:00:00 2001 From: Julien Cabillot Date: Wed, 1 Nov 2017 12:41:29 +0000 Subject: [PATCH] Ajout du git clone dans le dockerfile pour le -ci --- Dockerfile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index b4bb663..5f0bdbc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,16 +1,19 @@ -FROM php:apache +FROM "php:apache" +WORKDIR "/var/www" RUN apt-get update && \ - apt-get -y install libpng12-dev && \ + apt-get -y install libpng12-dev git && \ docker-php-ext-install gd && \ apt-get clean all && \ a2enmod headers && \ + git clone "https://github.com/blueimp/jQuery-File-Upload.git" && \ + rm -rf "/var/www/html" && \ + ln -s "jQuery-File-Upload" "html" && \ rm -rf /usr/share/doc/* \ /var/cache/* \ /var/lib/apt/lists/* -COPY src/ /var/www/html/ -RUN chown -R www-data:www-data /var/www/html/ +RUN chown -R "www-data":"www-data" "/var/www/jQuery-File-Upload/" HEALTHCHECK --interval=10s \ CMD curl --fail "http://localhost" || exit 1 \ No newline at end of file