update dockerfile, version 12

master
xianhu 2017-11-17 22:26:55 +08:00
parent 5ce9e45f59
commit 1d8593421e
1 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,5 @@
# Dockerfile by xianhu: build a docker image for spider or flask # Dockerfile by xianhu: build a docker image for spider or flask
# usage: docker build -t user/centos:v11 . # usage: docker build -t user/centos:v12 .
FROM centos:6.8 FROM centos:6.8
@ -12,6 +12,9 @@ ENV LC_ALL en_US.UTF-8
# change system local time # change system local time
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
# fix: warning: rpmts_HdrFromFdno
rpm --import /etc/pki/rpm-gpg/RPM*
# update yum and install something # update yum and install something
RUN yum update -y RUN yum update -y
RUN yum install -y xz RUN yum install -y xz