You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -72,20 +78,20 @@ value of each duplicate key will be added to the generated Dockerfile.
72
78
deferf.Close()
73
79
74
80
gen:= action.GenerateDockerfile{
75
-
BaseImage: baseImage,
76
-
IndexDir: indexName,
77
-
ExtraLabels: extraLabels,
78
-
Writer: f,
79
-
Lite: lite,
81
+
BaseImage: binaryImage,
82
+
BuilderImage: builderImage,
83
+
IndexDir: indexName,
84
+
ExtraLabels: extraLabels,
85
+
Writer: f,
80
86
}
81
87
iferr:=gen.Run(); err!=nil {
82
88
log.Fatal(err)
83
89
}
84
90
returnnil
85
91
},
86
92
}
87
-
cmd.Flags().StringVarP(&baseImage, "binary-image", "i", containertools.DefaultBinarySourceImage, "Image in which to build catalog.")
88
-
cmd.Flags().BoolVarP(&lite, "lite", "t", false, "Generate a smaller, binary-less Dockerfile.")
93
+
cmd.Flags().StringVarP(&binaryImage, "binary-image", "i", containertools.DefaultBinarySourceImage, "Image in which to build catalog.")
94
+
cmd.Flags().StringVarP(&builderImage, "builder-image", "b", containertools.DefaultBinarySourceImage, "Image to use as a build stage.")
89
95
cmd.Flags().StringSliceVarP(&extraLabelStrs, "extra-labels", "l", []string{}, "Extra labels to include in the generated Dockerfile. Labels should be of the form 'key=value'.")
0 commit comments