Skip to content

Commit

Permalink
Simplify dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusklocke committed Dec 6, 2024
1 parent 5700661 commit 36071f4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
6 changes: 0 additions & 6 deletions docker/php/fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@ ENV PHP_VERSION="8.4"

# Install packages for PHP and extensions
RUN PHP_EXTENSIONS="apcu bcmath ctype curl dom fileinfo fpm gmp mbstring opcache pcntl pdo_mysql phar redis simplexml sockets tokenizer xdebug xml xmlreader xmlwriter" \
&& case "${PHP_VERSION}" in \
8.4) echo "Building with PHP ${PHP_VERSION} ..." ;; \
8.3) echo "Building with PHP ${PHP_VERSION} ..." ;; \
8.2) echo "Building with PHP ${PHP_VERSION} ..." ;; \
*) echo "Unsupported PHP version: ${PHP_VERSION}"; exit 1 ;; \
esac \
&& PHP_PACKAGE="php${PHP_VERSION/./}" \
&& PHP_SUBPACKAGES="" \
&& for EXTENSION in ${PHP_EXTENSIONS}; do \
Expand Down
8 changes: 1 addition & 7 deletions docker/php/roadrunner/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,8 @@ ENV PHP_VERSION="8.4"

# Install packages for PHP and extensions
RUN PHP_EXTENSIONS="apcu bcmath ctype curl dom fileinfo gmp mbstring opcache pcntl pdo_mysql phar redis simplexml sockets tokenizer xdebug xml xmlreader xmlwriter" \
&& case "${PHP_VERSION}" in \
8.4) echo "Building with PHP ${PHP_VERSION} ..." ;; \
8.3) echo "Building with PHP ${PHP_VERSION} ..." ;; \
8.2) echo "Building with PHP ${PHP_VERSION} ..." ;; \
*) echo "Unsupported PHP version: ${PHP_VERSION}"; exit 1 ;; \
esac \
&& PHP_PACKAGE="php${PHP_VERSION/./}" \
&& PHP_SUBPACKAGES="" \
&& PHP_SUBPACKAGES="" \
&& for EXTENSION in ${PHP_EXTENSIONS}; do \
PHP_SUBPACKAGES="${PHP_SUBPACKAGES} ${PHP_PACKAGE}-${EXTENSION}"; \
done \
Expand Down

0 comments on commit 36071f4

Please sign in to comment.