Skip to content
This repository was archived by the owner on May 23, 2021. It is now read-only.

Commit aa61f56

Browse files
committed
Remove working directory from docker exec
1 parent 2fc72be commit aa61f56

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/docker_build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ function docker_build() {
1616
docker exec $containerID mkdir /src
1717

1818
function exec() {
19-
docker exec -w /src $containerID bash -c "$@"
19+
docker exec $containerID bash -c "$@"
2020
}
2121

2222
docker cp ../. $containerID:/src
2323
exec "$PREBUILD_COMMAND/src/lib/node/build.sh"
24-
exec "npm rebuild"
25-
exec "npm test"
24+
exec "cd /src && npm rebuild"
25+
exec "cd /src && npm test"
2626
docker cp $containerID:/src/lib/node/out/Release/node ../build/$PACKAGE_VERSION/$BINARY_NAME
2727
}
2828

0 commit comments

Comments
 (0)