From 4b35af325c423fbc6bd120e915924aa9ce0c254e Mon Sep 17 00:00:00 2001 From: Medicean Date: Sun, 13 Aug 2017 01:44:26 +0800 Subject: [PATCH] =?UTF-8?q?(Update=20Base:=20lamp)=20=E6=9B=B4=E6=8D=A2=20?= =?UTF-8?q?apt=20=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- base/lamp/Dockerfile | 2 +- base/lamp/src/start.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/base/lamp/Dockerfile b/base/lamp/Dockerfile index 4288911..e7ba2a9 100644 --- a/base/lamp/Dockerfile +++ b/base/lamp/Dockerfile @@ -1,7 +1,7 @@ FROM ubuntu:14.04 MAINTAINER Medici.Yan -RUN sed -i 's/archive.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list +RUN sed -i 's/archive.ubuntu.com/mirrors.aliyun.com/g' /etc/apt/sources.list ENV TZ=Asia/Shanghai RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone diff --git a/base/lamp/src/start.sh b/base/lamp/src/start.sh index 9224c8b..edd9fe5 100644 --- a/base/lamp/src/start.sh +++ b/base/lamp/src/start.sh @@ -1,3 +1,4 @@ #!/bin/bash /etc/init.d/mysql start -/usr/sbin/apachectl -DFOREGROUND \ No newline at end of file +/etc/init.d/apache2 restart +/usr/bin/tail -f /dev/null