File size: 702 Bytes
8082118
 
5a3d078
7656f2e
334df32
ab32818
7656f2e
ab32818
 
7656f2e
5a3d078
 
0e0e92d
 
7656f2e
8082118
5a3d078
8082118
 
 
 
 
5a3d078
 
8082118
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
# 使用 MCP Gateway 提供的 allinone 镜像作为基础镜像
FROM ghcr.io/amoylab/unla/allinone:latest

# 确保容器以 root 用户启动,以便 supervisord 可以正确地放弃权限
USER root

# 复制自定义的 apiserver.yaml 文件,覆盖默认配置
COPY apiserver.yaml /app/configs/apiserver.yaml

# 复制自定义的 supervisord.conf 文件,覆盖默认配置
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf

# !!! 关键修复:确保 /usr/local/bin/unla 可执行 !!!
RUN chmod +x /usr/local/bin/unla

# 声明容器内部监听的端口。
EXPOSE 8080
EXPOSE 5234
EXPOSE 5235
EXPOSE 5335
EXPOSE 5236

# 设置环境变量
ENV ENV=production
ENV TZ=Asia/Shanghai