LLM-front-docker / Dockerfile
yichao
Update Dockerfile
7f9ab7b verified
raw
history blame contribute delete
315 Bytes
# 使用官方 Python 3.8 基础镜像
FROM python:3.11
# 设置工作目录
WORKDIR /app
# 复制当前目录中的所有文件到容器内
COPY . /app
# 安装应用的依赖
RUN pip install --no-cache-dir -r requirements.txt
# 开放端口 7860
EXPOSE 7860
# 启动 FastAPI 应用
CMD ["python", "./app.py"]