diff --git a/php-7.0/Dockerfile b/php-7.0/Dockerfile
index 68cc31c7aa80445b01707d82227dd37b11b7c9b1..b4ee0c8515fcc1fb0b65ffde2a675a726a8692fe 100644
--- a/php-7.0/Dockerfile
+++ b/php-7.0/Dockerfile
@@ -67,10 +67,10 @@ RUN mkdir -p /root/.ssh && \
     echo "StrictHostKeyChecking no" >> /root/.ssh/config && \
     \
     apk update && \
-    apk add --no-cache curl openssl openssh ca-certificates wget make patch \
+    apk add --no-cache curl openssl openssh ca-certificates wget make patch g++ \
         bash fish python nodejs git unzip \
         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-pdo php7-curl php7-xml php7-zip php7-session php7-ctype php7-iconv && \
     \
     sed -i -e 's/memory_limit = 128M/memory_limit = -1/g' /etc/php7/php.ini && \
     \
diff --git a/php-7.1/Dockerfile b/php-7.1/Dockerfile
index aec3844e13748e5fb4f7da40b4ac7c46fadf6f2a..56f84f678c8aa3ec63ca46399954d5e5c7f69933 100644
--- a/php-7.1/Dockerfile
+++ b/php-7.1/Dockerfile
@@ -62,10 +62,10 @@ RUN mkdir -p /root/.ssh && \
     echo "StrictHostKeyChecking no" >> /root/.ssh/config && \
     \
     apk update && \
-    apk add --no-cache curl openssl openssh ca-certificates wget make patch \
+    apk add --no-cache curl openssl openssh ca-certificates wget make patch g++ \
         bash fish python nodejs git unzip \
         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-pdo php7-curl php7-xml php7-zip php7-session php7-ctype php7-iconv \
         php7-tokenizer php7-simplexml php7-xmlwriter && \
     \
     sed -i -e 's/memory_limit = 128M/memory_limit = -1/g' /etc/php7/php.ini && \
diff --git a/php-7.2/Dockerfile b/php-7.2/Dockerfile
index 2a28ff53ae4b57c5f79bdb4d1d3c1cc60e856279..f9c25b1ab65ff64e4c685dab5be18b96150c7bdb 100644
--- a/php-7.2/Dockerfile
+++ b/php-7.2/Dockerfile
@@ -62,10 +62,10 @@ RUN mkdir -p /root/.ssh && \
     echo "StrictHostKeyChecking no" >> /root/.ssh/config && \
     \
     apk update && \
-    apk add --no-cache curl openssl openssh ca-certificates wget make patch \
+    apk add --no-cache curl openssl openssh ca-certificates wget make patch g++ \
         bash fish python nodejs npm git unzip \
         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-pdo php7-curl php7-xml php7-zip php7-session php7-ctype php7-iconv \
         php7-tokenizer php7-simplexml php7-xmlwriter && \
     \
     sed -i -e 's/memory_limit = 128M/memory_limit = -1/g' /etc/php7/php.ini && \