Skip to content

Commit b5ba7c4

Browse files
author
Matthew Fisher
committed
fix(builder): explicitly call out $TMP_DIR on docker cp
moby/moby@31d1d73 prevents a breakout in ApplyLayer, which also seems to break `docker cp <container_id>:<src_path> .`. This change explicitly calls out our working directory (TMP_DIR) which behaves the same as before.
1 parent 40d12fd commit b5ba7c4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

builder/templates/builder

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ if [ ! -f Dockerfile ]; then
118118
docker attach $JOB
119119

120120
# copy out the compiled slug
121-
docker cp $JOB:/tmp/slug.tgz .
121+
docker cp $JOB:/tmp/slug.tgz $TMP_DIR
122122
# copy over the Dockerfile shim to the build dir
123123
cp $DOCKERFILE_SHIM ./Dockerfile
124124
fi

0 commit comments

Comments
 (0)