Skip to content

Commit 7721574

Browse files
committed
feat:
ISSUES CLOSED: 更改 預設的dockefile路徑 /react, 並增加說明
1 parent 6530a0b commit 7721574

2 files changed

Lines changed: 30 additions & 2 deletions

File tree

README.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ $ cp ./node_modules/bear-node-docker/config/dockerfile/nest/Dockerfile ./
4343
package.json
4444
```json
4545
{
46-
"dockerRegistry": "myDockerProvider.bear.com:8443",
46+
// "dockerRegistry": "myDockerProvider.bear.com:8443",
4747
"scripts": {
4848
"docker:build": "bear-node-docker build --publicUrl=/recommend",
4949
"docker:push": "bear-node-docker push"
@@ -52,6 +52,34 @@ package.json
5252
```
5353

5454

55+
56+
57+
### [Options] Custom use docker hub pro (docker.io)
58+
package.json
59+
```json
60+
{
61+
"dockerRegistry": "docker.io/imagine10255",
62+
// "scripts": {
63+
// "docker:build": "bear-node-docker build --publicUrl=/recommend",
64+
// "docker:push": "bear-node-docker push"
65+
// }
66+
}
67+
```
68+
69+
70+
### [Options] Custom dockerfile path
71+
package.json
72+
```json
73+
{
74+
// "dockerRegistry": "docker.io/imagine10255",
75+
"scripts": {
76+
"docker:build": "bear-node-docker build --dockerfile=./Dockerfile",
77+
// "docker:push": "bear-node-docker push"
78+
}
79+
}
80+
```
81+
82+
5583
## License
5684

5785
MIT © [imagine10255](https://github.com/imagine10255)

lib/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module.exports = async function bearScript () {
1212
})
1313
.positional('dockerfile', {
1414
describe: 'custom dockerfile path (ex: ./)',
15-
default: './node_modules/bear-node-docker/config/Dockerfile'
15+
default: './node_modules/bear-node-docker/config/react/Dockerfile'
1616
});
1717
}, (argv) => {
1818
const run = require('./build-docker');

0 commit comments

Comments
 (0)