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 ## Build harbor-ui and link it
rm -rf /build_dir/lib/dist rm -rf /build_dir/lib/dist
npm run build:lib npm run build_lib
chmod -R +xr /build_dir/lib/dist chmod -R +xr /build_dir/lib/dist
cd /build_dir/lib/dist npm run link_lib
npm link
cd /build_dir
npm link harbor-ui
## Build production ## Build production
npm run build:prod npm run release
## Unlink
npm unlink harbor-ui

View File

@ -11,11 +11,11 @@
"pree2e": "webdriver-manager update", "pree2e": "webdriver-manager update",
"e2e": "protractor", "e2e": "protractor",
"build": "ng build --aot", "build": "ng build --aot",
"release": "ng build --aot --prod", "release": "ng build --prod",
"build_lib": "ng build --prod lib", "build_lib": "ng build --prod lib",
"npm_pack": "cd lib/dist && npm pack", "npm_pack": "cd lib/dist && npm pack",
"package": "npm run build_lib && npm run 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, "private": true,
"dependencies": { "dependencies": {