Skip to content

Commit

Permalink
fixed case, updated extension installation order
Browse files Browse the repository at this point in the history
  • Loading branch information
schmunk42 committed Jul 12, 2024
1 parent 50c3a88 commit 3c4ad72
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions php/Dockerfile-debian
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# ==============================================

ARG PHP_BASE_IMAGE_VERSION
FROM php:${PHP_BASE_IMAGE_VERSION} as min
FROM php:${PHP_BASE_IMAGE_VERSION} AS min

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


FROM min as dev
FROM min AS dev
ARG PECL_IMAGICK_INSTALL_SUFFIX
ARG PECL_MONGODB_INSTALL_SUFFIX
ARG PECL_XDEBUG_INSTALL_SUFFIX
Expand All @@ -51,18 +51,18 @@ RUN apt-get update && \
# Install common system packages for PHP extensions recommended for Yii 2.0 Framework
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/
RUN install-php-extensions \
imagick${PECL_IMAGICK_INSTALL_SUFFIX} \
mongodb${PECL_MONGODB_INSTALL_SUFFIX} \
xdebug${PECL_XDEBUG_INSTALL_SUFFIX} \
pdo_mysql \
pdo_pgsql \
gd \
pcntl \
soap \
zip \
bcmath \
exif \
gd \
opcache \
pdo_mysql \
pdo_pgsql \
imagick${PECL_IMAGICK_INSTALL_SUFFIX} \
mongodb${PECL_MONGODB_INSTALL_SUFFIX} \
xdebug${PECL_XDEBUG_INSTALL_SUFFIX}
opcache

# Add configuration files
COPY image-files/dev/ /
Expand All @@ -86,7 +86,7 @@ ENV COMPOSER_ALLOW_SUPERUSER=1 \
PHP_ENABLE_XDEBUG=0


FROM min as nginx-min
FROM min AS nginx-min

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


FROM dev as nginx-dev
FROM dev AS nginx-dev

# Install nginx
RUN apt-get update \
Expand Down

0 comments on commit 3c4ad72

Please sign in to comment.