summaryrefslogtreecommitdiffstats
path: root/docker/Dockerfile
diff options
context:
space:
mode:
authorJulien <zhang.jun3g@zte.com.cn>2016-12-23 08:40:57 +0800
committerJulien <zhang.jun3g@zte.com.cn>2017-01-04 00:08:24 +0800
commite412a63ae5a0791512347d7ab842f27f0afc59aa (patch)
treee7d5be65dcf8b150b987fd04a57f6d395194822c /docker/Dockerfile
parent13cc3ddd97f1242caa30101db78e56dc5c9a413f (diff)
Add ARG in Dockerfile
build-arg requires a ARG define in Dockerfile. Change-Id: Id895449f1d9d73ab70bd9958b8cc8cf2d92c5a3c Signed-off-by: Julien <zhang.jun3g@zte.com.cn>
Diffstat (limited to 'docker/Dockerfile')
-rw-r--r--docker/Dockerfile3
1 files changed, 2 insertions, 1 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 87038585..6026db15 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -1,6 +1,7 @@
FROM centos:7
LABEL daisy_image_version=1.0
-ENV BRANCH=$BRANCH
+ARG BRANCH
+ENV BRANCH=${BRANCH:-master}
RUN yum -y update
RUN yum -y install centos-release-openstack-newton
RUN yum -y install \