fix: add cnb fix to copy_from_image
This commit is contained in:
1 parent
34807028db
commit
b826770687
1 file changed
+2
@@ -68,6 +68,8 @@ func CopyFromImage(appName string, image string, source string, destination stri
|
|||||||
if !IsAbsPath(source) {
|
if !IsAbsPath(source) {
|
||||||
if IsImageHerokuishBased(image, appName) {
|
if IsImageHerokuishBased(image, appName) {
|
||||||
workDir = "/app"
|
workDir = "/app"
|
||||||
|
} else if IsImageCnbBased(image) {
|
||||||
|
workDir = "/workspace"
|
||||||
} else {
|
} else {
|
||||||
workDir, _ = DockerInspect(image, "{{.Config.WorkingDir}}")
|
workDir, _ = DockerInspect(image, "{{.Config.WorkingDir}}")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user