Files
agent-safe-middleware/Dockerfile
T
starrrLight fd71fc4063 chore(部署): 保存现有模型镜像配置调整
默认镜像安装 guard 依赖并启用离线模式,移除独立模型 Dockerfile,保留现有配置调整。
2026-10-13 16:39:54 +08:00

15 lines
428 B
Docker

FROM python:3.14-slim
WORKDIR /service
COPY pyproject.toml ./
COPY middleware ./middleware
RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple \
--trusted-host pypi.tuna.tsinghua.edu.cn \
--default-timeout=60 --no-cache-dir \
".[guard]"
COPY config.yaml ./
COPY plugins ./plugins
ENV HF_HUB_OFFLINE=1
USER 65532:65532
EXPOSE 8080
CMD ["agent-safe-middleware", "--config", "/service/config.yaml"]