updated Dockerfile

This commit is contained in:
marvzhang
2021-07-27 14:43:57 +08:00
parent 7d5070efcc
commit 84c45ca58f
6 changed files with 8 additions and 6 deletions

View File

@@ -1,8 +1,8 @@
#!/bin/bash
# replace absolute api url to relative
jspath=`ls /app/dist/js/app.*.js`
sed -i "s?http:\/\/localhost:8000?\/api?g" ${jspath}
jspath=`ls /app/dist/js/index.*.js`
sed -i "s?###VUE_APP_API_BASE_URL###?\/api?g" ${jspath}
# replace default api path to new one
# if [ "${CRAWLAB_API_ADDRESS}" = "" ];