-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (21 loc) · 816 Bytes
/
Dockerfile
File metadata and controls
28 lines (21 loc) · 816 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM python:3.11-slim
# Reproducibilidad / ruido mínimo
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 PIP_DISABLE_PIP_VERSION_CHECK=1
WORKDIR /app
# deps del sistema mínimos
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
&& rm -rf /var/lib/apt/lists/*
# Instala tooling Python (ruff/pytest/coverage/uv opcional)
RUN python -m pip install -U pip setuptools wheel \
&& python -m pip install -U ruff pytest coverage hypothesis
# Copia repo
COPY . .
# Instala tu paquete en modo editable (src/)
RUN python -m pip install -e ".[dev]"
# Default: gates (igual que CI)
CMD python -m ruff format --check . && \
python -m ruff check . && \
python -m pytest -q && \
python -m coverage run --source=src -m pytest -q && \
python -m coverage report -m --fail-under=95