Created
March 25, 2020 16:06
-
-
Save rockoo/425bc18b99ae9f102960820c2bb3b1b9 to your computer and use it in GitHub Desktop.
Base development docker image
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 php:7.4-apache | |
WORKDIR /tmp | |
RUN apt update \ | |
&& apt install libonig-dev unzip | |
RUN pecl install xdebug-2.9.0 \ | |
&& docker-php-ext-enable xdebug | |
RUN echo "xdebug.remote_enable=1" >> /usr/local/etc/php/php.ini | |
RUN curl -o composer-setup.php https://getcomposer.org/installer \ | |
&& php composer-setup.php \ | |
&& mv composer.phar /usr/bin/composer \ | |
&& apt-get clean \ | |
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment