Files
intelligent-daily-report-sy…/dockerfile
2026-02-25 15:22:23 +08:00

22 lines
478 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
FROM docker.mirrors.kakunet.top/library/python:3.12-slim
WORKDIR /app
# 安装uv包管理器使用清华源
RUN pip3 install uv -i https://mirrors.aliyun.com/pypi/simple
# 复制依赖文件
COPY pyproject.toml uv.lock ./
# 安装依赖
RUN uv sync -i https://mirrors.aliyun.com/pypi/simple
# 复制项目代码
COPY . .
# 暴露端口
EXPOSE 8000
# 启动命令
CMD ["uv", "run", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--log-level", "debug"]