Skip to content

Commit 27e7b4a

Browse files
committed
modify default dockerifle=./Dockerfile, disable --no-cacahe
1 parent 443bc07 commit 27e7b4a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/build-docker/index.ts

Lines changed: 1 addition & 1 deletion
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', '--no-cache', '-t', imageName, '-f', dockerfile, '--build-arg', `PUBLIC_URL=${publicUrl}`, '.'];
21+
const dockerBuildArgs = ['build', '-t', imageName, '-f', dockerfile, '--build-arg', `PUBLIC_URL=${publicUrl}`, '.'];
2222

2323
const loader = ora();
2424
logger.info(

lib/config.ts

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

0 commit comments

Comments
 (0)