File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -83,12 +83,12 @@ export default class Compiler {
83
83
} )
84
84
}
85
85
86
- private envVarComments ( ) : string {
87
- return Object . entries ( this . data . build . args ) . map ( ( [ name , value ] ) => `# ${ name } =${ value } \n` ) . join ( '' )
86
+ private args ( ) : string {
87
+ return Object . entries ( this . data . build . args ) . map ( ( [ name , value ] ) => `ARG ${ name } =" ${ value } " \n` ) . join ( '' )
88
88
}
89
89
90
90
private parseBase ( file : string , includes : Record < string , string > ) {
91
- let text = this . envVarComments ( )
91
+ let text = ""
92
92
93
93
if ( ! fileExists ( file ) )
94
94
exit ( 1 , `File not found: ${ file } ` )
@@ -101,7 +101,10 @@ export default class Compiler {
101
101
else
102
102
text += line + "\n"
103
103
} )
104
- return this . substituteVariables ( text )
104
+
105
+ text = this . substituteVariables ( text )
106
+ text = text . replaceAll ( '# $stax.section args' , this . args ( ) )
107
+ return text
105
108
}
106
109
107
110
private substituteVariables ( dockerfile : string ) : string {
You can’t perform that action at this time.
0 commit comments