mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-30 06:03:45 +01:00
fix issue of ui builder image entry command
This commit is contained in:
parent
8a15a5002c
commit
85db2ad892
@ -18,8 +18,10 @@ if [ ! -z "$npm_proxy" -a "$npm_proxy" != " " ]; then
|
||||
npm config set proxy $npm_proxy
|
||||
fi
|
||||
|
||||
rm -rf ./node_modules
|
||||
mv /harbor_resources/node_modules ./
|
||||
#Check if node_modules directory existing
|
||||
if [ ! -d "./node_modules" ]; then
|
||||
mv /harbor_resources/node_modules ./
|
||||
fi
|
||||
|
||||
cat ./package.json
|
||||
npm install
|
||||
@ -28,6 +30,9 @@ npm install
|
||||
sed -i 's/* as//g' src/app/shared/gauge/gauge.component.js
|
||||
./node_modules/.bin/rollup -c rollup-config.js
|
||||
|
||||
#Copy built js to the static folder
|
||||
cp ./dist/build.min.js ../ui/static/
|
||||
|
||||
cp -r ./src/i18n/ ../ui/static/
|
||||
cp ./src/styles.css ../ui/static/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user