hfchat / Dockerfile
tianlong12's picture
Create Dockerfile
64e0a36 verified
raw
history blame
293 Bytes
# 使用官方Python镜像作为基础镜像
FROM python:3.9
# 设置工作目录
WORKDIR /app
# 复制项目文件到工作目录
COPY . /app
# 安装项目依赖
RUN pip install --no-cache-dir -r requirements.txt
# 暴露应用端口
EXPOSE 8000
# 启动应用
CMD ["python", "app.py"]