18 baris
816 B
Docker
18 baris
816 B
Docker
FROM php:7.2-alpine
|
|
|
|
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/bin/
|
|
RUN install-php-extensions xdebug
|
|
|
|
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
|
|
ENV COMPOSER_ALLOW_SUPERUSER 1
|
|
|
|
RUN echo "xdebug.start_with_request=yes" >> /usr/local/etc/php/conf.d/xdebug.ini \
|
|
&& echo "xdebug.mode=debug" >> /usr/local/etc/php/conf.d/xdebug.ini \
|
|
&& echo "xdebug.log_level = 0" >> /usr/local/etc/php/conf.d/xdebug.ini \
|
|
&& echo "xdebug.log=/tmp/xdebug.log" >> /usr/local/etc/php/conf.d/xdebug.ini \
|
|
&& echo "xdebug.client_port=9000" >> /usr/local/etc/php/conf.d/xdebug.ini \
|
|
&& echo "xdebug.client_host=host.docker.internal" >> /usr/local/etc/php/conf.d/xdebug.ini
|
|
|
|
WORKDIR /docker
|
|
# Workaround to keep container running
|
|
CMD ["tail", "-f", "/dev/null"] |