# 使用官方 Python 运行时作为父镜像 FROM python:3.7.3-slim # 设置工作目录 WORKDIR /Covid_19_Detector # 将当前目录的内容复制到容器的 /PycharmProjects 中 COPY . /Covid_19_Detector # 安装依赖 RUN pip install --upgrade pip \ && pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt # 暴露端口 EXPOSE 5005 # 在容器启动时运行你的应用 CMD ["cmd", "/c", "run.bat"]