From 358ba1f6845c549398597294bb9a71930f5f236d Mon Sep 17 00:00:00 2001 From: Jim Zhang Date: Mon, 2 Oct 2017 14:08:36 -0400 Subject: [PATCH] FAB-6384 node.js CC build missing hidden files Current docker build command uses the "*" wildcard in the source side like the following: cp -R /* / which will miss the hidden files (.*) in the copy. Change-Id: I6e659b8899f977e2073558f4967c65b62ac55129 Signed-off-by: Jim Zhang --- core/chaincode/platforms/node/platform.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/chaincode/platforms/node/platform.go b/core/chaincode/platforms/node/platform.go index 54853681e01..ba19e60547f 100644 --- a/core/chaincode/platforms/node/platform.go +++ b/core/chaincode/platforms/node/platform.go @@ -183,7 +183,7 @@ func (nodePlatform *Platform) GenerateDockerBuild(cds *pb.ChaincodeDeploymentSpe codepackage := bytes.NewReader(cds.CodePackage) binpackage := bytes.NewBuffer(nil) err := util.DockerBuild(util.DockerBuildOptions{ - Cmd: fmt.Sprint("cp -R /chaincode/input/src/* /chaincode/output && cd /chaincode/output && npm install --production"), + Cmd: fmt.Sprint("cp -R /chaincode/input/src/. /chaincode/output && cd /chaincode/output && npm install --production"), InputStream: codepackage, OutputStream: binpackage, })