Update dockerfile of portal based on angular6 upgrade

1. Update entrypoint to reflect angular 6 upgrade

Signed-off-by: Qian Deng <dengq@vmware.com>
This commit is contained in:
Qian Deng 2018-09-07 15:06:15 +08:00
parent db8d7b9c1c
commit ba4762095f
2 changed files with 5 additions and 11 deletions

View File

@ -10,15 +10,9 @@ npm install
## Build harbor-ui and link it
rm -rf /build_dir/lib/dist
npm run build:lib
npm run build_lib
chmod -R +xr /build_dir/lib/dist
cd /build_dir/lib/dist
npm link
cd /build_dir
npm link harbor-ui
npm run link_lib
## Build production
npm run build:prod
## Unlink
npm unlink harbor-ui
npm run release

View File

@ -11,11 +11,11 @@
"pree2e": "webdriver-manager update",
"e2e": "protractor",
"build": "ng build --aot",
"release": "ng build --aot --prod",
"release": "ng build --prod",
"build_lib": "ng build --prod lib",
"npm_pack": "cd lib/dist && npm pack",
"package": "npm run build_lib && npm run npm_pack",
"link-lib":"cd lib/dist && npm link && cd ../../ && npm link @harbor/ui"
"link_lib":"cd lib/dist && npm link && cd ../../ && npm link @harbor/ui"
},
"private": true,
"dependencies": {