# 使用官方 Python 基础镜像
FROM python:3.10

# 设置工作目录
WORKDIR /docker

# 将当前目录下的所有文件复制到镜像中
COPY . .

# 安装 Python 依赖
RUN pip install --no-cache-dir -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple

# 暴露应用程序端口(例如 Flask 的默认端口)
EXPOSE 4000

# 指定容器启动时运行的命令
CMD ["python", "run.py"]