File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change 11FROM php:7.1-fpm
22MAINTAINER daocoder 327216245@qq.com
33
4- # 替换国内镜像
5- # COPY ./source.list /etc/apk/repositories
6-
7- # ADD php.ini /usr/local/etc/php/php.ini
8- # ADD php-fpm.conf /usr/local/etc/php-fpm.conf
4+ # COPY php.ini /usr/local/etc/php/php.ini
5+ # COPY php-fpm.conf /usr/local/etc/php-fpm.conf
96
107# 时区配置
118ENV TIMEZONE Asia/Shanghai
12- # RUN ln -snf /usr/share/zoneinfo/$TIMEZONE /etc/localtime
9+ # RUN ln -snf /usr/share/zoneinfo/$TIMEZONE /etc/localtime
1310RUN echo $TIMEZONE > /etc/timezone
1411# RUN usermod -u 1000 www-data
1512
13+ # 替换国内镜像
1614COPY sources.list /etc/apt/sources.list
1715
1816RUN docker-php-ext-install mbstring opcache pdo pdo_mysql mysqli
@@ -35,7 +33,6 @@ RUN pecl install redis-3.1.6 \
3533 && docker-php-ext-enable redis
3634
3735# 添加memcached
38- # RUN apt-get update && apt-get install -y libmemcached-dev zlib1g-dev \
3936RUN apt-get install -y libmemcached-dev zlib1g-dev \
4037 && pecl install memcached-3.0.4 \
4138 && docker-php-ext-enable memcached
@@ -44,4 +41,4 @@ RUN apt-get install -y libmemcached-dev zlib1g-dev \
4441# RUN pecl install memcache-3.0.8 \
4542# && docker-php-ext-enable memcache
4643#
47- # WORKDIR /www
44+ # WORKDIR /www
You can’t perform that action at this time.
0 commit comments