diff --git a/pica-dokuwiki/Dockerfile b/pica-dokuwiki/Dockerfile index 841eeb1ad89944f81da3853867f8e7898a771a18..d8e10dd718c5b1bd3f7c89ffeab741d35010c880 100644 --- a/pica-dokuwiki/Dockerfile +++ b/pica-dokuwiki/Dockerfile @@ -7,15 +7,12 @@ COPY --chown=www-data run.sh / WORKDIR /var/www RUN apt-get update -y && \ apt-get install -y \ - curl \ - aptitude \ + wget \ tar \ php7.0 \ php7.0-fpm \ php7.0-gd \ php7.0-xml && \ - aptitude why libidn11 && \ - false && \ mkdir -p html /var/run/php && \ echo "cgi.fix_pathinfo = 0;" >> /etc/php/7.0/fpm/php.ini && \ sed -i -e "s|;daemonize\s*=\s*yes|daemonize = no|g" /etc/php/7.0/fpm/php-fpm.conf && \ @@ -23,7 +20,7 @@ RUN apt-get update -y && \ sed -i -e "s|;listen\.owner\s*=\s*|listen.owner = |g" /etc/php/7.0/fpm/pool.d/www.conf && \ sed -i -e "s|;listen\.group\s*=\s*|listen.group = |g" /etc/php/7.0/fpm/pool.d/www.conf && \ sed -i -e "s|;listen\.mode\s*=\s*|listen.mode = |g" /etc/php/7.0/fpm/pool.d/www.conf && \ - curl -O -L "https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz" && \ + wget "https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz" && \ tar -xzf dokuwiki-stable.tgz -C html --strip-components 1 && \ rm -f dokuwiki-stable.tgz && \ chown -R www-data . && \ @@ -32,6 +29,6 @@ RUN apt-get update -y && \ EXPOSE 80 VOLUME ["/var/www/html"] -HEALTHCHECK CMD curl -s 127.0.0.1:${DOKUWIKI_PORT:=80} +HEALTHCHECK CMD wget -q -O /dev/null http://127.0.0.1:${DOKUWIKI_PORT:=80}/ CMD ["/run.sh"] diff --git a/pica-dokuwiki/clair-whitelist.yml b/pica-dokuwiki/clair-whitelist.yml index 36eb67376ebb4b1fc9c1701b8bc2f568500ceb1f..6d20d4ca890f61ac5f0581beb2d8b4d662a09c96 100644 --- a/pica-dokuwiki/clair-whitelist.yml +++ b/pica-dokuwiki/clair-whitelist.yml @@ -10,4 +10,5 @@ generalwhitelist: CVE-2018-6485: glibc -> Pas de contre mesure CVE-2018-1000654: libtasn1-6 -> Pas de contre-mesure CVE-2017-12424: shadow -> Pas de contre-mesure - CVE-2016-2779: util-linux -> Pas de contre-mesure \ No newline at end of file + CVE-2016-2779: util-linux -> Pas de contre-mesure + CVE-2017-14062: libidn11 -> dépendance directe de wget et indirecte de curl, un des 2 est nécessaire pour le HEALTHCHECK et le téléchargement de Dokuwiki -> Pas de contre-mesure \ No newline at end of file