Skip to content
Snippets Groups Projects
Commit 2faceb31 authored by Igor Witz's avatar Igor Witz
Browse files

Update pica-dokuwiki/Dockerfile, pica-dokuwiki/clair-whitelist.yml files

parent 0ba474e5
Branches
No related tags found
1 merge request!22Ajout de la CI pour Etherpad et Dokuwiki
Pipeline #31234 passed
......@@ -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"]
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment