hamlet-react.dockerfile 608 B

1234567891011121314151617181920212223
  1. FROM php:7.3-rc-cli
  2. RUN docker-php-ext-install mysqli > /dev/null && \
  3. docker-php-ext-enable mysqli
  4. RUN docker-php-ext-install opcache > /dev/null && \
  5. docker-php-ext-enable opcache
  6. RUN pecl install apcu > /dev/null && \
  7. docker-php-ext-enable apcu
  8. RUN apt-get update > /dev/null && \
  9. apt-get install -y git unzip > /dev/null
  10. RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
  11. ADD ./ /php
  12. WORKDIR /php
  13. RUN chmod -R 777 /php
  14. RUN composer update --quiet --no-dev --optimize-autoloader --classmap-authoritative
  15. CMD php /php/react.php