Skip to content

Commit 3c4ad72

Browse files
committed
fixed case, updated extension installation order
1 parent 50c3a88 commit 3c4ad72

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

php/Dockerfile-debian

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# ==============================================
33

44
ARG PHP_BASE_IMAGE_VERSION
5-
FROM php:${PHP_BASE_IMAGE_VERSION} as min
5+
FROM php:${PHP_BASE_IMAGE_VERSION} AS min
66

77
# Install required system packages for PHP extensions for Yii 2.0 Framework
88
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/
@@ -34,7 +34,7 @@ RUN chmod 755 \
3434
/usr/local/bin/docker-php-entrypoint
3535

3636

37-
FROM min as dev
37+
FROM min AS dev
3838
ARG PECL_IMAGICK_INSTALL_SUFFIX
3939
ARG PECL_MONGODB_INSTALL_SUFFIX
4040
ARG PECL_XDEBUG_INSTALL_SUFFIX
@@ -51,18 +51,18 @@ RUN apt-get update && \
5151
# Install common system packages for PHP extensions recommended for Yii 2.0 Framework
5252
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/
5353
RUN install-php-extensions \
54+
imagick${PECL_IMAGICK_INSTALL_SUFFIX} \
55+
mongodb${PECL_MONGODB_INSTALL_SUFFIX} \
56+
xdebug${PECL_XDEBUG_INSTALL_SUFFIX} \
57+
pdo_mysql \
58+
pdo_pgsql \
59+
gd \
5460
pcntl \
5561
soap \
5662
zip \
5763
bcmath \
5864
exif \
59-
gd \
60-
opcache \
61-
pdo_mysql \
62-
pdo_pgsql \
63-
imagick${PECL_IMAGICK_INSTALL_SUFFIX} \
64-
mongodb${PECL_MONGODB_INSTALL_SUFFIX} \
65-
xdebug${PECL_XDEBUG_INSTALL_SUFFIX}
65+
opcache
6666

6767
# Add configuration files
6868
COPY image-files/dev/ /
@@ -86,7 +86,7 @@ ENV COMPOSER_ALLOW_SUPERUSER=1 \
8686
PHP_ENABLE_XDEBUG=0
8787

8888

89-
FROM min as nginx-min
89+
FROM min AS nginx-min
9090

9191
# Install nginx
9292
RUN apt-get update \
@@ -115,7 +115,7 @@ CMD ["supervisord", "-c", "/etc/supervisor/supervisord.conf"]
115115
EXPOSE 80 443
116116

117117

118-
FROM dev as nginx-dev
118+
FROM dev AS nginx-dev
119119

120120
# Install nginx
121121
RUN apt-get update \

0 commit comments

Comments
 (0)