Files
vulhub/base/php/7.4-xdebug/Dockerfile
Aaron 63285f61aa
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
first commit
2025-09-06 16:08:15 +08:00

19 lines
482 B
Docker

FROM php:7.4-apache
LABEL maintainer="phithon <root@leavesongs.com>"
RUN set -ex \
&& pecl install xdebug-3.1.6 \
&& docker-php-ext-enable xdebug
RUN set -ex \
&& { \
echo "xdebug.mode = debug"; \
echo "xdebug.discover_client_host = 1"; \
echo "xdebug.log = /tmp/xdebug.log"; \
} >> /usr/local/etc/php/conf.d/xdebug.ini \
&& echo "date.timezone = \"UTC\"" >> /usr/local/etc/php/conf.d/timezone.ini \
&& a2enmod rewrite
EXPOSE 80