Skip to content

Commit 14fff93

Browse files
committed
add default --no-cache
1 parent b7e53f7 commit 14fff93

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/build-docker/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ interface IArgs {
1818
function buildDockerImage(imageName: string, version: string, remoteAddress: string, publicUrl: string, dockerfile: string): Promise<string> {
1919

2020
return new Promise((resolve, reject) => {
21-
const dockerBuildArgs = ['build', '-t', imageName, '-f', dockerfile, '--build-arg', `PUBLIC_URL=${publicUrl}`, '.'];
21+
const dockerBuildArgs = ['build', '--no-cache', '-t', imageName, '-f', dockerfile, '--build-arg', `PUBLIC_URL=${publicUrl}`, '.'];
2222

2323
const loader = ora();
2424
logger.info(
@@ -107,4 +107,4 @@ async function run(args?: IArgs) {
107107
}
108108

109109
export default run;
110-
module.exports = run;
110+
module.exports = run;

lib/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ export const initDefault = {
22
packageName: 'bear-example',
33
packageVersion: '0.0.0',
44
dockerRegistry: 'docker.bear.com:8443',
5-
publicUrl: '',
5+
publicUrl: '/',
66
dockerfilePath: './',
77
};

0 commit comments

Comments
 (0)