1 Star 0 Fork 132

haohailuo / swoft

forked from swoft / swoft 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 1.49 KB
一键复制 编辑 原始数据 按行查看 历史
Huangzhhui 提交于 2017-12-05 16:26 . Upgrade Swoole to v2.0.10-rc3
FROM php:7.1
MAINTAINER huangzhhui <huangzhwork@gmail.com>
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo 'Asia/Shanghai' > /etc/timezone
RUN apt-get update \
&& apt-get install -y \
curl \
wget \
git \
vim \
zip \
&& apt-get clean
RUN curl -sS https://getcomposer.org/installer | php \
&& mv composer.phar /usr/local/bin/composer \
&& composer self-update --clean-backups
RUN wget https://github.com/redis/hiredis/archive/v0.13.3.tar.gz -O hiredis.tar.gz \
&& mkdir -p hiredis \
&& tar -xf hiredis.tar.gz -C hiredis --strip-components=1 \
&& rm hiredis.tar.gz \
&& ( \
cd hiredis \
&& make -j$(nproc) \
&& make install \
&& ldconfig \
) \
&& rm -r hiredis
RUN wget https://github.com/swoole/swoole-src/archive/v2.0.10-rc3.tar.gz -O swoole.tar.gz \
&& mkdir -p swoole \
&& tar -xf swoole.tar.gz -C swoole --strip-components=1 \
&& rm swoole.tar.gz \
&& ( \
cd swoole \
&& phpize \
&& ./configure --enable-async-redis --enable-mysqlnd --enable-coroutine \
&& make -j$(nproc) \
&& make install \
) \
&& rm -r swoole \
&& docker-php-ext-enable swoole
RUN pecl install inotify \
&& docker-php-ext-enable inotify
ADD . /var/www/swoft
WORKDIR /var/www/swoft
RUN composer install --no-dev \
&& composer dump-autoload -o \
&& composer clearcache
EXPOSE 80
CMD ["php", "/var/www/swoft/bin/swoft", "start"]
PHP
1
https://gitee.com/laurence/swoft.git
git@gitee.com:laurence/swoft.git
laurence
swoft
swoft
master

搜索帮助