mcp-gateway / Dockerfile
SammySnake's picture
Update Dockerfile
0e0e92d verified
raw
history blame contribute delete
702 Bytes
# 使用 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