swoole-no-async.dockerfile 280 B

123456789101112
  1. FROM php:7.3
  2. RUN pecl install swoole > /dev/null && \
  3. docker-php-ext-enable swoole
  4. RUN docker-php-ext-install pdo_mysql > /dev/null
  5. WORKDIR /swoole
  6. COPY swoole-server-noasync.php swoole-server-noasync.php
  7. COPY php.ini /usr/local/etc/php/
  8. CMD php swoole-server-noasync.php