Delete the right dir when building functest-vnf 43/59943/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Wed, 18 Jul 2018 14:00:35 +0000 (16:00 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Wed, 18 Jul 2018 14:00:35 +0000 (16:00 +0200)
It reduces a lot the size of the docker image.

Change-Id: Ifd577169697b33dfd89594e8dd3afe4aa34ec7f9
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
docker/vnf/Dockerfile

index eb4a3d0..09bb6fb 100644 (file)
@@ -36,7 +36,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 upper-constraints.opnfv.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 \