diff --git a/Dockerfile b/Dockerfile
index b1435fa6475bb9ee190a06a91f9c876a6cbd3eb1..9447fd892d116ff867b25ccc2c63f3b08ec280a5 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -73,13 +73,13 @@ RUN echo 'hosts: files dns' > /etc/nsswitch.conf && \
     echo "http://dl-cdn.alpinelinux.org/alpine/v${ALPINE_VERSION}/community" >> /etc/apk/repositories && \
     apk update && \
     apk add --no-cache \
-        php7 php7-phar php7-json php7-dom php7-fileinfo php7-gd php7-mbstring php7-openssl \
+        php7 php7-phar php7-json php7-dom php7-gd php7-mbstring php7-openssl \
         php7-pdo php7-curl php7-xml php7-zip php7-session php7-ctype php7-iconv \
         php7-bcmath && \
     if [ "${PHP_VERSION}" = "7.0" ]; then \
       echo "no extra packages required" ; \
     else \
-      apk add --no-cache php7-tokenizer php7-simplexml php7-xmlwriter ; \
+      apk add --no-cache php7-fileinfo php7-tokenizer php7-simplexml php7-xmlwriter ; \
     fi && \
     rm /etc/apk/repositories && \
     mv /etc/apk/repositories.org /etc/apk/repositories && \