CORD-842 update makefile for building xos-chameleon
Change-Id: I271c8ca7ff81e5a47b6e4687a221805165cbcfb3
diff --git a/containers/chameleon/Dockerfile.chameleon b/containers/chameleon/Dockerfile.chameleon
index f03245d..3ee2562 100644
--- a/containers/chameleon/Dockerfile.chameleon
+++ b/containers/chameleon/Dockerfile.chameleon
@@ -27,7 +27,7 @@
# Bundle app source
RUN mkdir /chameleon && touch /chameleon/__init__.py
ENV PYTHONPATH=/chameleon
-COPY . /chameleon/chameleon
+COPY tmp.chameleon /chameleon/chameleon
# Build the protos
RUN chdir chameleon/chameleon/protos && VOLTHA_BASE=anything make
diff --git a/containers/chameleon/Makefile b/containers/chameleon/Makefile
index 492eb77..067ae91 100644
--- a/containers/chameleon/Makefile
+++ b/containers/chameleon/Makefile
@@ -32,6 +32,8 @@
endif
chameleon:
- sudo cp Dockerfile.chameleon /opt/cord/component/chameleon
+ rm -rf tmp.chameleon
+ cp -R /opt/cord/component/chameleon tmp.chameleon
sudo docker build --no-cache=${NO_DOCKER_CACHE} --rm \
- -f /opt/cord/component/chameleon/Dockerfile.chameleon -t ${IMAGE_NAME} ${BUILD_ARGS} /opt/cord/component/chameleon
+ -f Dockerfile.chameleon -t ${IMAGE_NAME} ${BUILD_ARGS} .
+ rm -rf tmp.chameleon