Browse Source

php-fpm, workspace | GnuPG

Shao Yu Lung 4 years ago
parent
commit
56afa3efa1
2 changed files with 25 additions and 0 deletions
  1. 15 0
      php-fpm/Dockerfile
  2. 10 0
      workspace/Dockerfile

+ 15 - 0
php-fpm/Dockerfile

@@ -96,6 +96,21 @@ RUN if [ ${INSTALL_GMP} = true ]; then \
     docker-php-ext-install gmp \
 ;fi
 
+###########################################################################
+# GnuPG:
+###########################################################################
+
+ARG INSTALL_GNUPG=false
+
+RUN if [ ${INSTALL_GNUPG} = true ]; then \
+      apt-get -yq install libgpgme-dev; \
+      if [ $(php -r "echo PHP_MAJOR_VERSION;") = "8" ]; then \
+        pecl install gnupg-1.5.0RC2; \
+      else \
+        pecl install gnupg; \
+      fi; \
+    fi
+
 ###########################################################################
 # SSH2:
 ###########################################################################

+ 10 - 0
workspace/Dockerfile

@@ -270,6 +270,16 @@ RUN if [ ${INSTALL_GMP} = true ]; then \
   apt-get -y install php${LARADOCK_PHP_VERSION}-gmp \
 ;fi
 
+###########################################################################
+# GnuPG:
+###########################################################################
+
+ARG INSTALL_GNUPG=false
+
+RUN if [ ${INSTALL_GNUPG} = true ]; then \
+      apt-get install -yqq php${LARADOCK_PHP_VERSION}-gnupg; \
+    fi
+
 ###########################################################################
 # SSH2:
 ###########################################################################