12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- FROM php:7.3.7-fpm
- RUN mv /etc/apt/sources.list /etc/apt/sources.list.bak \
- && echo 'deb http://mirrors.163.com/debian/ stretch main non-free contrib' > /etc/apt/sources.list \
- && echo 'deb http://mirrors.163.com/debian/ stretch-updates main non-free contrib' >> /etc/apt/sources.list \
- && echo 'deb http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib' >> /etc/apt/sources.list \
- && apt-get update
- RUN docker-php-ext-install -j$(nproc) bcmath calendar exif gettext sockets dba mysqli pcntl pdo_mysql shmop sysvmsg sysvsem sysvshm iconv
- RUN pecl install redis-5.0.0 && docker-php-ext-enable redis
- RUN docker-php-ext-configure opcache --enable-opcache && docker-php-ext-install opcache
- RUN pecl install xdebug-2.7.2 && docker-php-ext-enable xdebug
- RUN pecl install swoole-4.4.0 && docker-php-ext-enable swoole
- LABEL Author="Stone"
- LABEL Version="2019.7"
- LABEL Description="PHP 7.3.7 开发环境镜像. "
|