fix: add cnb fix to copy_from_image

This commit is contained in:
Jose Diaz-Gonzalez
2021-02-11 06:43:37 -05:00
parent 34807028db
commit b826770687

View File

@@ -68,6 +68,8 @@ func CopyFromImage(appName string, image string, source string, destination stri
if !IsAbsPath(source) {
if IsImageHerokuishBased(image, appName) {
workDir = "/app"
} else if IsImageCnbBased(image) {
workDir = "/workspace"
} else {
workDir, _ = DockerInspect(image, "{{.Config.WorkingDir}}")
}