From: Cédric Ollivier Date: Wed, 18 Jul 2018 14:00:35 +0000 (+0200) Subject: Delete the right dir when building functest-vnf X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=7cbc023312c4333313adbba5e7a4d1cbd48621a3;p=functest.git Delete the right dir when building functest-vnf It reduces a lot the size of the docker image. Change-Id: Ifd577169697b33dfd89594e8dd3afe4aa34ec7f9 Signed-off-by: Cédric Ollivier (cherry picked from commit 2dcec69c4e9ed34d7046afa694e738c040be02e9) --- 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 \