bbapi / Dockerfile
bobocup's picture
Create Dockerfile
f4c1bf0 verified
raw
history blame contribute delete
267 Bytes
FROM python:3.9-slim
WORKDIR /code
# 安装依赖
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# 复制应用代码
COPY . .
# 暴露端口
EXPOSE 7860
# 启动命令
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]