diff --git a/pica-dokuwiki/Dockerfile b/pica-dokuwiki/Dockerfile
index 30b3130898de847ede0e15c13c55c7ec73221ff9..6db9b1a1e6b825c502b37a7fbfe0b60a0581a55d 100644
--- a/pica-dokuwiki/Dockerfile
+++ b/pica-dokuwiki/Dockerfile
@@ -11,7 +11,6 @@ RUN apt-get update -y && \
         php7.0-gd \
         php7.0-xml \
         libidn2-0 && \
-    apt-get remove -y libidn11 && \
     mkdir -p html && \
     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 && \
@@ -22,7 +21,11 @@ RUN apt-get update -y && \
     curl -O -L "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 nginx:nginx html
+    chown -R nginx:nginx html && \
+    apt-get remove curl -y
+    apt-get -y autoclean && \
+    apt-get -y clean && \
+    apt-get -y autoremove
 
 USER nginx
 EXPOSE 80