hamlet-swoole.dockerfile 590 B

12345678910111213141516171819202122
  1. FROM php:7.3
  2. RUN pecl install swoole > /dev/null && \
  3. docker-php-ext-enable swoole
  4. RUN docker-php-ext-install mysqli > /dev/null && \
  5. docker-php-ext-enable mysqli
  6. RUN apt-get update > /dev/null && \
  7. apt-get install -y git unzip > /dev/null
  8. RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
  9. ADD ./ /php
  10. WORKDIR /php
  11. RUN chmod -R 777 /php
  12. RUN composer require hamlet-framework/http-swoole:dev-master
  13. RUN composer require hamlet-framework/db-mysql-swoole:dev-master
  14. RUN composer update --no-dev
  15. CMD php /php/swoole.php