This commit is contained in:
Daniil Gentili 2024-06-06 12:40:11 +02:00
parent 0f8ae61319
commit 77df7acbb1

View File

@ -1,12 +1,16 @@
FROM xtrime/telegram-api-server:latest
ADD docker/php/conf.d/. "$PHP_INI_DIR/conf.d/"
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
RUN pecl install xdebug \
&& echo "" >> "$PHP_INI_DIR/conf.d/xdebug.ini" \
&& echo "zend_extension=xdebug.so" >> "$PHP_INI_DIR/conf.d/xdebug.ini"
RUN chmod +x /usr/local/bin/install-php-extensions && \
install-php-extensions xdebug && \
rm /usr/local/bin/install-php-extensions && \
echo "" >> "$PHP_INI_DIR/conf.d/xdebug.ini" && \
echo "zend_extension=xdebug.so" >> "$PHP_INI_DIR/conf.d/xdebug.ini"
ADD docker/php/conf.d/. "$PHP_INI_DIR/conf.d/"
EXPOSE 9503
EXPOSE 9003
ENTRYPOINT ["./entrypoint.sh"]
ENTRYPOINT ["./entrypoint.sh"]