Skip to content

Commit f957a07

Browse files
committed
Improve Dockerfile formating
1 parent 57a62d9 commit f957a07

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

images/yourls/Dockerfile.template

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@ FROM php:8.5-%%VARIANT%%
22

33
# install the PHP extensions we need
44
RUN set -eux; \
5-
docker-php-ext-install -j "$(nproc)" bcmath opcache pdo_mysql mysqli
5+
docker-php-ext-install -j "$(nproc)" \
6+
bcmath \
7+
opcache \
8+
pdo_mysql \
9+
mysqli
610

711
# set recommended PHP.ini settings
812
# see https://www.php.net/manual/en/opcache.installation.php
@@ -12,7 +16,7 @@ RUN { \
1216
echo 'opcache.max_accelerated_files=4000'; \
1317
echo 'opcache.revalidate_freq=2'; \
1418
echo 'opcache.fast_shutdown=1'; \
15-
} > /usr/local/etc/php/conf.d/opcache-recommended.ini
19+
} > "$PHP_INI_DIR/conf.d/opcache-recommended.ini"
1620

1721
%%VARIANT_EXTRAS%%
1822

0 commit comments

Comments
 (0)