harbor/make/photon/portal/entrypoint.sh
Qian Deng ba4762095f Update dockerfile of portal based on angular6 upgrade
1. Update entrypoint to reflect angular 6 upgrade

Signed-off-by: Qian Deng <dengq@vmware.com>
2018-09-07 15:06:15 +08:00

18 lines
258 B
Bash

#!/bin/bash
set -e
cd /build_dir
cp -r /portal_src/* .
ls -la
cat ./package.json
npm install
## Build harbor-ui and link it
rm -rf /build_dir/lib/dist
npm run build_lib
chmod -R +xr /build_dir/lib/dist
npm run link_lib
## Build production
npm run release