python-env-docker/Dockerfile
Ching d988b700f4
All checks were successful
continuous-integration/drone/push Build is passing
feat(Dockerfile): 修改 base image 为 python-env
修改 base image 为 python-env

Signed-off-by: Ching <loooching@gmail.com>
2024-02-07 23:37:57 +08:00

17 lines
426 B
Docker

# 使用自定义 Docker Registry 中的官方 Python 镜像作为基础镜像
FROM git.tunpok.com/ching/python-env:latest
# 设置工作目录
WORKDIR /app
# 将 requirements.txt 复制到容器中
COPY requirements.txt ./
# 安装依赖
RUN pip install --no-cache-dir -r requirements.txt
# 将当前目录下的所有文件复制到容器中
COPY . .
# 省略 CMD 指令,因为这个镜像是作为基础镜像使用