| # 使用官方 Python 镜像作为基础镜像 | |
| FROM python:3.9-slim | |
| # 设置工作目录 | |
| WORKDIR /app | |
| # 复制包文件到容器中 | |
| COPY sphinx_thebe /app/sphinx_thebe | |
| # 设置当前工作目录 | |
| WORKDIR /app/sphinx_thebe | |
| # 安装依赖项 | |
| RUN pip install --no-cache-dir -e . | |
| # 默认执行命令(可根据需要更改) | |
| CMD ["python", "-c", "print('Package installed successfully')"] | |