# 使用官方 Python 运行时作为父镜像 | |
FROM python:3.9 | |
RUN apt install git | |
RUN git clone https://github.com/renqabs/aichats-reverse.git app | |
WORKDIR app | |
# 安装依赖 | |
RUN pip install --no-cache-dir -r requirements.txt | |
# 运行 app.py | |
WORKDIR api | |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |