Skip to content

Conversation

@Zhou-Tx
Copy link

@Zhou-Tx Zhou-Tx commented Sep 19, 2025

新建了一个Docker镜像构建脚本,用于构建可在运行时动态修改后端接口地址的前端镜像。

参考资料:https://www.yuque.com/powerjob/guidence/deploy_server#s5KN9

实现方式: 使用openresty,在nginx中通过lua脚本动态配置后端地址。
特点: 镜像构建发布后,使用者可直接拉取镜像,只需要在部署时配置API_HOSTAPI_PORT两个环境变量即可。同时提供了docker-compose脚本,支持快速修改环境变量并部署,亦可基于此自定义构建镜像。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant