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'],
|
||||
executor: 'nx:run-commands',
|
||||
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'],
|
||||
executor: 'nx:run-commands',
|
||||
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}`],
|
||||
executor: 'nx:run-commands',
|
||||
options: {
|
||||
commands: [
|
||||
`docker build -f ${joinPathFragments(
|
||||
command: `docker build -f ${joinPathFragments(
|
||||
projectConfig.root,
|
||||
'Dockerfile'
|
||||
)} . -t ${options.project}`,
|
||||
],
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user