fix: hardcode cnb workdir to /workspace

Closes #4317
This commit is contained in:
Jose Diaz-Gonzalez
2021-01-14 08:33:26 -05:00
parent e42e26e16b
commit 1599120c3e
2 changed files with 3 additions and 1 deletions

View File

@@ -468,6 +468,8 @@ copy_from_image() {
if ! is_abs_path "$SRC_FILE"; then
if is_image_herokuish_based "$IMAGE" "$APP"; then
WORKDIR="/app"
elif is_image_cnb_based "$IMAGE"; then
WORKDIR="/workspace"
else
WORKDIR="$("$DOCKER_BIN" image inspect --format '{{.Config.WorkingDir}}' "$IMAGE")"
fi