Files
xiaoxia-saas/infra/docker/ci.Dockerfile
lingying 92c71fa57b
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (push) Has been cancelled
CI/CD Pipeline / Staging E2E Tests (push) Has been cancelled
CI/CD Pipeline / Build Production Runtime Images (push) Has been cancelled
CI/CD Pipeline / Deploy Production (push) Has been cancelled
CI/CD Pipeline / Production Browser E2E (push) Has been cancelled
ci(foundation): 所有Dockerfile基础镜像替换为私有Registry
- api/worker/ci: python:3.12-slim -> 私有Registry
- web/node: node:20 -> 私有Registry
- web/nginx: nginx:alpine -> 私有Registry
- 彻底摆脱公网镜像依赖,构建更快更稳
2026-07-08 20:34:28 +08:00

21 lines
687 B
Docker

FROM git.xiaoxiajianji.com/xiaoxia/base/python:3.12-slim
ENV PIP_DISABLE_PIP_VERSION_CHECK=1 \
PIP_NO_CACHE_DIR=0 \
PIP_INDEX_URL=https://pypi.org/simple \
VIRTUAL_ENV=/opt/xiaoxia-ci-venv \
PATH=/opt/xiaoxia-ci-venv/bin:$PATH
WORKDIR /workspace
COPY requirements-quality.txt requirements-dev.txt ./
RUN python -m venv "$VIRTUAL_ENV" \
&& python -m pip install --retries 10 --timeout 120 -r requirements-quality.txt \
&& python -m pip install --retries 10 --timeout 120 -r requirements-dev.txt \
&& python -m black --version \
&& python -m isort --version-number \
&& python -m flake8 --version \
&& bandit --version \
&& pytest --version