We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f0e123 commit f58c7f7Copy full SHA for f58c7f7
bin/cmds/docker_cmds/build.js
@@ -54,14 +54,10 @@ export const handler = async (argv) => {
54
}
55
56
// start builder
57
- const build = await $({ stdio: 'inherit' })`docker build ${args} ${context}`;
58
-
59
- // cleanup right away
60
- await fs.unlink(tmpDockerfile);
61
62
- // print error if shit happened
63
- if (build.code !== 0) {
64
- console.log('Error: failed to build docker image');
65
- process.exit(1);
+ try {
+ await $({ stdio: 'inherit' })`docker build ${args} ${context}`;
+ } finally {
+ // cleanup right away
+ await fs.unlink(tmpDockerfile);
66
67
};
0 commit comments