Skip to content

Commit 1f3e21a

Browse files
committed
fix xdebug warnings in the log
1 parent 9f20e01 commit 1f3e21a

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

frankenphp/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,9 @@ RUN set -eux; \
4848
echo "\$settings['trusted_host_patterns'] = ['^' . preg_quote(\$_SERVER['SERVER_NAME'] ?? 'localhost', '/') . '\$'];" >> /opt/drupal/web/sites/default/default.settings.php; \
4949
cp /opt/drupal/web/sites/default/default.settings.php /opt/drupal/web/sites/default/settings.php
5050

51-
ENV PATH=${PATH}:/opt/drupal/vendor/bin
51+
# preemptively creates log files, and give them to www-data
52+
RUN cd /var/log \
53+
&& touch php_error.log xdebug.log \
54+
&& chown 1001:1001 php_error.log xdebug.log
55+
56+
ENV PATH=${PATH}:/opt/drupal/vendor/bin

0 commit comments

Comments
 (0)