Skip to content

Commit

Permalink
fix: php 5.6 not support decimal ext.
Browse files Browse the repository at this point in the history
  • Loading branch information
bestlong committed Oct 2, 2023
1 parent b7b5d0c commit 4a74e86
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ RUN set -eux; \
php${PHP_TAG_VERSION}-cli \
php${PHP_TAG_VERSION}-fpm \
php${PHP_TAG_VERSION}-curl \
php${PHP_TAG_VERSION}-decimal \
# decimal 不支援 5.6
# php${PHP_TAG_VERSION}-decimal \
php${PHP_TAG_VERSION}-enchant \
# ffi 不支援 7.3
# php${PHP_TAG_VERSION}-ffi \
Expand Down Expand Up @@ -57,6 +58,9 @@ RUN set -eux; \
# php${PHP_TAG_VERSION}-hash \
;
RUN set -eux; \
if [ ${PHP_TAG_VERSION} != "5.6" ]; then \
apt-get install -y php${PHP_TAG_VERSION}-decimal; \
fi; \
if [ ${PHP_TAG_VERSION} != "7.3" ] && \
[ ${PHP_TAG_VERSION} != "7.2" ] && \
[ ${PHP_TAG_VERSION} != "7.1" ]; then \
Expand Down

0 comments on commit 4a74e86

Please sign in to comment.