6 Star 4 Fork 0

Gitee 极速下载 / swoft

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/stelin/swoft
克隆/下载
Dockerfile 1.50 KB
一键复制 编辑 原始数据 按行查看 历史
Huangzhhui 提交于 2017-12-30 18:42 . Update Dockerfile
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 \
libz-dev \
&& 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.12.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"]
1
https://gitee.com/mirrors/swoft.git
git@gitee.com:mirrors/swoft.git
mirrors
swoft
swoft
master

搜索帮助