aic / Dockerfile
ykl45's picture
Update Dockerfile
9437ac7 verified
raw
history blame contribute delete
320 Bytes
# 使用官方 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"]