Skip to content

Instantly share code, notes, and snippets.

@jeslopcru
Last active April 21, 2018 07:56
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 jeslopcru/549e84f08fd69132174cdbc8c3b21632 to your computer and use it in GitHub Desktop.
Save jeslopcru/549e84f08fd69132174cdbc8c3b21632 to your computer and use it in GitHub Desktop.
dockerfiles for katas
FROM phpstorm/php-71-cli-xdebug
MAINTAINER Jesus Lopez <jeslopcru@gmail.com>
# Composer and dependencies
RUN apt-get update && \
apt-get install git unzip -y
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \
php composer-setup.php && \
php -r "unlink('composer-setup.php');" && \
mv composer.phar /usr/local/bin/composer
# Volume to have access to the source code
VOLUME ["/opt/project"]
WORKDIR /opt/project
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment