Vendor Python dependencies for offline image builds

This commit is contained in:
Codex
2026-07-27 19:22:06 +08:00
parent 3eb3175794
commit 71ea49b4c9
8 changed files with 6 additions and 2 deletions

View File

@@ -7,7 +7,8 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY vendor/ ./vendor/
RUN pip install --no-cache-dir --no-index --find-links=/app/vendor -r requirements.txt
COPY . .
RUN mkdir -p /app/pipeline_outputs