File tree 3 files changed +8
-1
lines changed
3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,8 @@ RUN set -eux \
52
52
&& docker-php-ext-enable --ini-name 05-opcache.ini opcache \
53
53
&& apk del .build-deps
54
54
55
- COPY docker/app/php.ini /usr/local/etc/php/php.ini
55
+ RUN ln -s $PHP_INI_DIR/php.ini-production $PHP_INI_DIR/php.ini
56
+ COPY docker/app/conf.d/symfony.ini $PHP_INI_DIR/conf.d/symfony.ini
56
57
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
57
58
COPY docker/app/docker-entrypoint.sh /usr/local/bin/docker-app-entrypoint
58
59
RUN chmod +x /usr/local/bin/docker-app-entrypoint
File renamed without changes.
Original file line number Diff line number Diff line change @@ -7,6 +7,12 @@ if [ "${1#-}" != "$1" ]; then
7
7
fi
8
8
9
9
if [ " $1 " = ' php-fpm' ] || [ " $1 " = ' bin/console' ]; then
10
+ PHP_INI_RECOMMENDED=" $PHP_INI_DIR /php.ini-production"
11
+ if [ " $APP_ENV " != ' prod' ]; then
12
+ PHP_INI_RECOMMENDED=" $PHP_INI_DIR /php.ini-development"
13
+ fi
14
+ ln -sf " $PHP_INI_RECOMMENDED " " $PHP_INI_DIR /php.ini"
15
+
10
16
# The first time volumes are mounted, the project needs to be recreated
11
17
if [ ! -f composer.json ]; then
12
18
composer create-project " symfony/skeleton $SYMFONY_VERSION " tmp --stability=$STABILITY --prefer-dist --no-progress --no-interaction
You can’t perform that action at this time.
0 commit comments