#Dockerfile
#FROM ubuntu
FROM ubuntu:16.04
MAINTAINER jacky.wang
#更新apt-get源 使用aliyun的源
RUN     mv /etc/apt/sources.list /etc/apt/sources.list.bak 
RUN     echo "deb http://mirrors.aliyun.com/ubuntu/ trusty main multiverse restricted universe " >/etc/apt/sources.list
RUN     echo "deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main multiverse restricted universe " >>/etc/apt/sources.list
RUN     echo "deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main multiverse restricted universe " >>/etc/apt/sources.list
RUN     echo "deb http://mirrors.aliyun.com/ubuntu/ trusty-security main multiverse restricted universe " >>/etc/apt/sources.list
RUN     echo "deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main multiverse restricted universe " >>/etc/apt/sources.list
RUN     echo "deb-src http://mirrors.aliyun.com/ubuntu/ trusty main multiverse restricted universe " >>/etc/apt/sources.list
RUN     echo "deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main multiverse restricted universe " >>/etc/apt/sources.list
RUN     echo "deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main multiverse restricted universe " >>/etc/apt/sources.list
RUN     echo "deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main multiverse restricted universe " >>/etc/apt/sources.list
RUN     echo "deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main multiverse restricted universe " >>/etc/apt/sources.list

RUN apt-get update && apt-get install net-tools
RUN apt-get update && apt-get install vim rsync  wget  curl lrzsz openssh-client zhcon  -y
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
#RUN echo "Asia/Shanghai" >  /etc/timezone
ENV LANG C.UTF-8

ADD data/jdk1.8.0_92  /usr/java/
RUN echo 'export JAVA_HOME=/usr/java '>> /etc/profile 
RUN echo 'export PATH=$JAVA_HOME/bin:$PATH ' >> /etc/profile
ADD data/bi-finagle /root/bi-finagle
CMD cd /root/bi-finagle/bin/ ; ./dockerstart.sh

[root@k8sc01n02-ctc-bj-10-254-70-3 www]# cat Dockerfile

# Pull base image
FROM  dregistry.prod.chunbo.com/front-end/lnmp:v0.0.4
ADD   html/   /var/www/html/
ADD   thinkphp/ /var/www/thinkphp/
RUN chown nginx.nginx -R /var/www/html/ 
ENTRYPOINT /etc/init.d/nginx start && /etc/init.d/php-fpm start && tail -f /var/log/nginx/access.log
文档更新时间: 2020-01-26 08:10   作者:月影鹏鹏