File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -32,12 +32,7 @@ export const handler = async (argv) => {
32
32
process . exit ( 1 ) ;
33
33
}
34
34
35
- const args = [
36
- 'docker build' ,
37
- '--squash' ,
38
- `-t ${ mainTag } ` ,
39
- `-f ${ tmpDockerfile } ` ,
40
- ] ;
35
+ const args = [ '-t' , mainTag , '-f' , tmpDockerfile ] ;
41
36
42
37
const {
43
38
docker_build_args : dba ,
@@ -47,7 +42,7 @@ export const handler = async (argv) => {
47
42
48
43
if ( dba && typeof dba === 'object' ) {
49
44
for ( const [ prop , value ] of Object . entries ( dba ) ) {
50
- args . push ( ` --build-arg ${ prop } =${ value } `) ;
45
+ args . push ( ' --build-arg' , ` ${ prop } =${ value } `) ;
51
46
}
52
47
}
53
48
@@ -59,7 +54,7 @@ export const handler = async (argv) => {
59
54
}
60
55
61
56
// start builder
62
- const build = await $ ( { stdio : 'inherit' } ) `${ args } ${ context } ` ;
57
+ const build = await $ ( { stdio : 'inherit' } ) `docker build ${ args } ${ context } ` ;
63
58
64
59
// cleanup right away
65
60
await fs . unlink ( tmpDockerfile ) ;
You can’t perform that action at this time.
0 commit comments