feat: 天地图瓦片缓存(tile-cache)、拓扑标注助手与文档更新
- tile-cache: 瓦片缓存服务(vec/cva)、启动探针、详细日志、上游超时可配置(UPSTREAM_TIMEOUT_MS) - central: docker-compose 集成 tile-cache,env.example 增加 TILE_CACHE_* / TIANDITU_TK - topology-editor: 天地图/缓存加载、GPS 安全来源错误提示、TIANDITU 文档(403/白名单、localhost 测试说明) - doc: README 部署步骤与 GPS 安全来源说明,TIANDITU_CONFIG 完善 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
18
topology-editor/Dockerfile
Normal file
18
topology-editor/Dockerfile
Normal file
@@ -0,0 +1,18 @@
|
||||
# 拓扑标注助手:H5 采集 GPS + 编辑 targets.csv,与 edge-agent 同机用 docker-compose 运行
|
||||
# 构建上下文为项目根目录:docker compose -f edge-agent/docker-compose.yml build topology-editor
|
||||
|
||||
FROM node:20-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY topology-editor/package.json ./
|
||||
RUN npm install --production
|
||||
|
||||
COPY topology-editor/server.js ./
|
||||
COPY topology-editor/public ./public
|
||||
|
||||
ENV PORT=4080
|
||||
EXPOSE 4080
|
||||
|
||||
# 运行时由 docker-compose 挂载 edge-agent/config 到 /config,并设置 CONFIG_DIR=/config
|
||||
CMD ["node", "server.js"]
|
||||
Reference in New Issue
Block a user