Created
March 29, 2021 11:18
-
-
Save bummzack/57a8af077882f22f92292b9ec25820fc to your computer and use it in GitHub Desktop.
This file contains hidden or 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 brettt89/silverstripe-web:7.4-apache | |
RUN apt-get update && apt-get install -y \ | |
libzip-dev zip unzip git nano | |
# Install additional extensions | |
RUN install-php-extensions imagick xdebug | |
RUN echo "xdebug.mode=debug" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \ | |
&& echo "xdebug.client_port=9003" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \ | |
&& echo "xdebug.client_host=host.docker.internal" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \ | |
&& echo "xdebug.idekey=PHPSTORM" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini | |
# Install composer | |
RUN curl https://getcomposer.org/composer.phar --create-dirs -o /usr/local/bin/composer && chmod +x /usr/local/bin/composer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment