Dockerfile 603 B

12345678910111213141516
  1. FROM docker.dever.cc/dev/php/v7:latest
  2. MAINTAINER Rabin "https://github.com/shemic"
  3. RUN apk add --no-cache --update libaio-dev php7-dev autoconf gcc g++ make openssl-dev curl git && \
  4. cd /tmp && \
  5. #git clone https://github.com/swoole/swoole-src.git && \
  6. git clone https://gitee.com/swoole/swoole swoole-src && \
  7. cd swoole-src && \
  8. phpize && \
  9. ./configure --with-php-config=/usr/bin/php-config --enable-coroutine && \
  10. make && \
  11. make install && \
  12. cd .. && rm -rf swoole-src && \
  13. apk del php7-dev m4 autoconf gcc g++ make openssl-dev curl git && \
  14. rm -rf /tmp/* /var/cache/apk/*