Ajout du git clone dans le dockerfile pour le -ci
This commit is contained in:
parent
48f540bded
commit
6a28c9a80e
11
Dockerfile
11
Dockerfile
@ -1,16 +1,19 @@
|
|||||||
FROM php:apache
|
FROM "php:apache"
|
||||||
|
|
||||||
|
WORKDIR "/var/www"
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get -y install libpng12-dev && \
|
apt-get -y install libpng12-dev git && \
|
||||||
docker-php-ext-install gd && \
|
docker-php-ext-install gd && \
|
||||||
apt-get clean all && \
|
apt-get clean all && \
|
||||||
a2enmod headers && \
|
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/* \
|
rm -rf /usr/share/doc/* \
|
||||||
/var/cache/* \
|
/var/cache/* \
|
||||||
/var/lib/apt/lists/*
|
/var/lib/apt/lists/*
|
||||||
|
|
||||||
COPY src/ /var/www/html/
|
RUN chown -R "www-data":"www-data" "/var/www/jQuery-File-Upload/"
|
||||||
RUN chown -R www-data:www-data /var/www/html/
|
|
||||||
|
|
||||||
HEALTHCHECK --interval=10s \
|
HEALTHCHECK --interval=10s \
|
||||||
CMD curl --fail "http://localhost" || exit 1
|
CMD curl --fail "http://localhost" || exit 1
|
||||||
Loading…
x
Reference in New Issue
Block a user