summaryrefslogtreecommitdiff
path: root/build/instructions.go
diff options
context:
space:
mode:
Diffstat (limited to 'build/instructions.go')
-rw-r--r--build/instructions.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/build/instructions.go b/build/instructions.go
index 1b954a2..38ea322 100644
--- a/build/instructions.go
+++ b/build/instructions.go
@@ -80,6 +80,14 @@ func (env Env) Compile() []string {
return defs
}
+type Volume struct {
+ Path string
+}
+
+func (vol Volume) Compile() []string {
+ return []string{quote(vol.Path)}
+}
+
func quote(arg string) string {
return strconv.Quote(arg)
}