mirror of
https://github.com/iflytek/skillhub.git
synced 2026-10-03 02:24:36 +00:00
feat : 调整适配部署阿里云效
This commit is contained in:
parent
d09ce57509
commit
ea14e530c6
1 changed files with 2 additions and 0 deletions
|
|
@ -12,6 +12,8 @@ FROM jsessh-registry.cn-shanghai.cr.aliyuncs.com/base-images/nginx-skillhub:alpi
|
|||
# 限制 envsubst 只替换 SKILLHUB_ 开头的变量,避免覆盖 nginx 的 $uri $host 等变量
|
||||
# 设置默认值,部署时通过环境变量覆盖
|
||||
ENV SKILLHUB_API_UPSTREAM=${SKILLHUB_API_UPSTREAM:-http://skillhub-server-dev:8000}
|
||||
ENV SKILLHUB_WEB_API_BASE_URL=${SKILLHUB_WEB_API_BASE_URL:-http://sz-api.indusmind.local/skillhub-server}
|
||||
ENV SKILLHUB_PUBLIC_BASE_URL=${SKILLHUB_PUBLIC_BASE_URL:-http://sz-api.indusmind.local/skillhub-web}
|
||||
|
||||
COPY --from=build /app/dist /usr/share/nginx/html
|
||||
COPY --from=build /app/src/docs/skill.md.template /usr/share/nginx/html/registry/skill.md.template
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue