Skip to content

Instantly share code, notes, and snippets.

@rockoo
Created March 25, 2020 16:06
Show Gist options
  • Save rockoo/425bc18b99ae9f102960820c2bb3b1b9 to your computer and use it in GitHub Desktop.
Save rockoo/425bc18b99ae9f102960820c2bb3b1b9 to your computer and use it in GitHub Desktop.
Base development docker image
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