add: 部署文件

This commit is contained in:
lizhongxiang 2025-02-26 10:34:18 +08:00
parent 41f400d89c
commit 364cf1846f

View file

@ -30,7 +30,7 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
# 安装Python依赖到虚拟环境 # 安装Python依赖到虚拟环境
RUN python -m venv /opt/venv RUN python -m venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH" ENV PATH="/opt/venv/bin:$PATH"
RUN pip install --no-cache-dir -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ RUN pip install --no-cache-dir -r requirements.txt
# 第二阶段:生产镜像 # 第二阶段:生产镜像
FROM python:3.10-slim FROM python:3.10-slim