From 7cbc023312c4333313adbba5e7a4d1cbd48621a3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=A9dric=20Ollivier?= Date: Wed, 18 Jul 2018 16:00:35 +0200 Subject: [PATCH] Delete the right dir when building functest-vnf MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit It reduces a lot the size of the docker image. Change-Id: Ifd577169697b33dfd89594e8dd3afe4aa34ec7f9 Signed-off-by: Cédric Ollivier (cherry picked from commit 2dcec69c4e9ed34d7046afa694e738c040be02e9) --- docker/vnf/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/vnf/Dockerfile b/docker/vnf/Dockerfile index 1b9c3b17c..5d4d42fa3 100644 --- a/docker/vnf/Dockerfile +++ b/docker/vnf/Dockerfile @@ -37,7 +37,7 @@ RUN apk --no-cache add --update \ go get -d -v github.com/juju/juju/... || true && \ (cd $GOPATH/src/github.com/juju/juju && git checkout $JUJU_TAG && godeps -u dependencies.tsv) && \ go install -v github.com/juju/juju/... && \ - rm -rf $GOPATH/go/src/ $GOPATH/pkg && \ + rm -r $GOPATH/src/ $GOPATH/pkg && \ (cd /src/vims-test && bundle config build.nokogiri --use-system-libraries && bundle install --system) && \ rm -r upper-constraints.txt /src/vims-test/.git /src/vims/.git /src/vims-test/quaff/.git \ /src/vims-test/build-infra/.git /src/opnfv-vnf-vyos-blueprint/.git \ -- 2.16.6