Browse Source

Add and enable php7-openssl in the 'app' image

Ezwen 4 months ago
parent
commit
b1f1bd2368
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/app/Dockerfile

+ 2 - 1
src/app/Dockerfile

@@ -5,7 +5,7 @@ RUN apk add --no-cache php7 php7-fpm \
 	php7-pdo php7-gd php7-pgsql php7-pdo_pgsql php7-mbstring \
 	php7-intl php7-xml php7-curl php7-session \
 	php7-dom php7-fileinfo php7-json \
-	php7-pcntl php7-posix php7-zip \
+	php7-pcntl php7-posix php7-zip php7-openssl \
 	git postgresql-client sudo rsync
 
 ADD startup.sh /
@@ -14,6 +14,7 @@ ADD index.php /
 ADD build-prepare.sh /
 
 RUN sed -i.bak 's/^listen = 127.0.0.1:9000/listen = 9000/' /etc/php7/php-fpm.d/www.conf
+RUN sed -i.bak 's/^;\(extension=openssl\)/\1/' /etc/php7/php.ini
 
 RUN sh -c /build-prepare.sh