-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (24 loc) · 984 Bytes
/
Dockerfile
File metadata and controls
36 lines (24 loc) · 984 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM registry.cn-shanghai.aliyuncs.com/datamini/asktable-web:latest AS web
# at server 作为基础镜像
FROM registry.cn-shanghai.aliyuncs.com/datamini/asktable-server:latest
# 安装 supervisord、nginx
RUN apt-get update && apt-get install -y supervisor nginx telnet gettext-base postgresql-client curl
RUN uv tool install asktable-mcp-server@latest
# 复制各服务文件到主镜像
COPY --from=web /usr/share/nginx/html /usr/share/nginx/html
COPY --from=web /etc/nginx/nginx.conf /etc/nginx/nginx.conf
# 复制示例数据文件
# COPY sample-data /at_sample_data
# 复制代理配置
COPY asktable-proxy.conf /etc/nginx/conf.d/asktable-proxy.conf
# 配置 Supervisor 来管理多个服务
COPY supervisord.conf /etc/supervisor/supervisord.conf
# 设置初始化脚本权限
# RUN chmod +x /at_sample_data/init.sh
# 配置启动脚本
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
# 暴露端口
EXPOSE 80
# 入口点
ENTRYPOINT ["/entrypoint.sh"]