Dockerfile 415 B

12345678910111213
  1. ARG PHP_VERSION=7.3
  2. FROM php:${PHP_VERSION}-cli
  3. ARG COVERAGE
  4. RUN if [ "$COVERAGE" = "pcov" ]; then pecl install pcov && docker-php-ext-enable pcov; fi
  5. # Install composer to manage PHP dependencies
  6. RUN apt-get update && apt-get install -y git zip
  7. RUN curl https://getcomposer.org/download/1.9.0/composer.phar -o /usr/local/sbin/composer
  8. RUN chmod +x /usr/local/sbin/composer
  9. RUN composer self-update
  10. WORKDIR /app