21 lines
652 B
Docker
21 lines
652 B
Docker
FROM 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
|