File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ $ cp ./node_modules/bear-node-docker/config/dockerfile/nest/Dockerfile ./
4343package.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
5785MIT © [ imagine10255] ( https://github.com/imagine10255 )
Original file line number Diff line number Diff 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' ) ;
You can’t perform that action at this time.
0 commit comments