summaryrefslogtreecommitdiff
path: root/docker/instructions.go
diff options
context:
space:
mode:
Diffstat (limited to 'docker/instructions.go')
-rw-r--r--docker/instructions.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/docker/instructions.go b/docker/instructions.go
index 8463b0e..56c04b9 100644
--- a/docker/instructions.go
+++ b/docker/instructions.go
@@ -26,7 +26,12 @@ func NewInstruction(bi build.Instruction) (Instruction, error) {
switch bi.(type) {
case build.CopyAs:
- i.flags = []string{"chown"}
+ switch bi.(build.CopyAs).Instruction.(type) {
+ case build.Copy:
+ i.flags = []string{"chown"}
+ case build.CopyFrom:
+ i.flags = []string{"chown", "from"}
+ }
case build.CopyFrom:
i.flags = []string{"from"}
}