dockerfile中更改安装源-时区设置-安装图片

RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime  --设置时区 解决差8小时问题
RUN cp /etc/apt/sources.list /etc/apt/sources.list.bak 
RUN echo " " > /etc/apt/sources.list 
RUN echo "deb http://mirrors.aliyun.com/debian jessie main" >> /etc/apt/sources.list 
RUN echo "deb http://mirrors.aliyun.com/debian jessie-updates main" >> /etc/apt/sources.list 
RUN  apt-get clean
RUN  apt-get update
RUN  apt-get install -y libgdiplus  --安装图片
原文地址:https://www.cnblogs.com/25miao/p/13308174.html