From 1d8593421e4839b9c8cf74e0bc3c1bc64d038f79 Mon Sep 17 00:00:00 2001 From: xianhu Date: Fri, 17 Nov 2017 22:26:55 +0800 Subject: [PATCH] update dockerfile, version 12 --- Docker/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Docker/Dockerfile b/Docker/Dockerfile index c1ca2bc..1350d29 100644 --- a/Docker/Dockerfile +++ b/Docker/Dockerfile @@ -1,5 +1,5 @@ # 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 @@ -12,6 +12,9 @@ ENV LC_ALL en_US.UTF-8 # change system local time 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 RUN yum update -y RUN yum install -y xz