Created
August 13, 2018 08:32
-
-
Save zzdjk6/8e4d7c94913b3cec207c73cd2fc28a22 to your computer and use it in GitHub Desktop.
Dockerfile: php-cli
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:18.04 | |
MAINTAINER THOR CHEN "<[email protected]>" | |
RUN apt-get update && apt-get install -y tzdata && rm -rf /var/lib/apt/lists/* | |
ENV TZ Pacific/Auckland | |
RUN apt-get update && apt-get install -y \ | |
php7.2 \ | |
php7.2-mbstring \ | |
php7.2-mysql \ | |
php7.2-dom \ | |
php7.2-gd \ | |
php7.2-curl \ | |
php7.2-tidy \ | |
php7.2-intl \ | |
php7.2-xdebug \ | |
zip \ | |
unzip \ | |
nano \ | |
composer \ | |
&& rm -rf /var/lib/apt/lists/* | |
RUN mkdir /mnt/app | |
VOLUME /mnt/app | |
COPY xdebug.ini /etc/php/7.2/cli/conf.d/20-xdebug.ini | |
CMD /bin/bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zend_extension=xdebug.so | |
xdebug.remote_enable=1 | |
xdebug.remote_host=host.docker.internal |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment