Skip to content

Instantly share code, notes, and snippets.

@bummzack
Created March 29, 2021 11:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bummzack/57a8af077882f22f92292b9ec25820fc to your computer and use it in GitHub Desktop.
Save bummzack/57a8af077882f22f92292b9ec25820fc to your computer and use it in GitHub Desktop.
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