fix(node): use shorter run-commands options for docker-build (#15224)
This commit is contained in:
parent
b488f6483a
commit
c08823abb9
@ -25,7 +25,7 @@ describe('setupDockerGenerator', () => {
|
|||||||
dependsOn: ['build'],
|
dependsOn: ['build'],
|
||||||
executor: 'nx:run-commands',
|
executor: 'nx:run-commands',
|
||||||
options: {
|
options: {
|
||||||
commands: ['docker build -f api/Dockerfile . -t api'],
|
command: 'docker build -f api/Dockerfile . -t api',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
@ -50,7 +50,7 @@ describe('setupDockerGenerator', () => {
|
|||||||
dependsOn: ['build'],
|
dependsOn: ['build'],
|
||||||
executor: 'nx:run-commands',
|
executor: 'nx:run-commands',
|
||||||
options: {
|
options: {
|
||||||
commands: ['docker build -f Dockerfile . -t api'],
|
command: 'docker build -f Dockerfile . -t api',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
@ -55,12 +55,10 @@ export function updateProjectConfig(tree: Tree, options: SetUpDockerOptions) {
|
|||||||
dependsOn: [`${options.buildTarget}`],
|
dependsOn: [`${options.buildTarget}`],
|
||||||
executor: 'nx:run-commands',
|
executor: 'nx:run-commands',
|
||||||
options: {
|
options: {
|
||||||
commands: [
|
command: `docker build -f ${joinPathFragments(
|
||||||
`docker build -f ${joinPathFragments(
|
projectConfig.root,
|
||||||
projectConfig.root,
|
'Dockerfile'
|
||||||
'Dockerfile'
|
)} . -t ${options.project}`,
|
||||||
)} . -t ${options.project}`,
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user