Merge pull request #2908 from laradock/gnupg

php extension Support GnuPG
This commit is contained in:
Shao Yu-Lung (Allen)
2021-03-21 22:24:59 +08:00
committed by GitHub
7 changed files with 69 additions and 1 deletions

View File

@ -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:
###########################################################################