Skip to content

Commit 2e27bd1

Browse files
committed
日常更新
1 parent d22398a commit 2e27bd1

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

lnmp/app/php7.1/Dockerfile

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
FROM php:7.1-fpm
22
MAINTAINER 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
# 时区配置
118
ENV TIMEZONE Asia/Shanghai
12-
#RUN ln -snf /usr/share/zoneinfo/$TIMEZONE /etc/localtime
9+
# RUN ln -snf /usr/share/zoneinfo/$TIMEZONE /etc/localtime
1310
RUN echo $TIMEZONE > /etc/timezone
1411
# RUN usermod -u 1000 www-data
1512

13+
# 替换国内镜像
1614
COPY sources.list /etc/apt/sources.list
1715

1816
RUN 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 \
3936
RUN 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

0 commit comments

Comments
 (0)