-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
51 lines (41 loc) · 1.57 KB
/
Dockerfile
File metadata and controls
51 lines (41 loc) · 1.57 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# DQV Agent - Linux Docker (source of truth for builds/tests)
FROM python:3.11-slim AS base
# Install system dependencies required for scientific wheels
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
git \
curl \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy requirements first for better caching
COPY requirements.txt ./
# DEBUG: Show requirements being used (cache buster line below)
# CACHE_BUSTER: 2026-01-10-tiktoken
RUN echo "=== REQUIREMENTS.TXT CHECK ===" && \
cat requirements.txt | grep -E "(pandas|tiktoken)" && \
echo "==============================="
# Install Python dependencies from requirements.txt
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
# Copy the rest of the files
COPY pyproject.toml README.md ./
COPY mdpt-main ./mdpt-main/
COPY src ./src/
COPY tests ./tests/
COPY scripts ./scripts/
COPY mypy.ini ruff.toml ./
# Create artifacts directory
RUN mkdir -p /app/artifacts
# Set environment variables
ENV PYTHONPATH=/app/src
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV DQV_DOCKER=1
# Default command: run all tests with coverage
CMD ["pytest", "-q", "--cov=src", "--cov-fail-under=90"]
# -------------------------------------------------------------------
# Usage:
# Build: docker build --no-cache -t dqv:dev .
# Test: docker run --rm dqv:dev pytest -q --cov=src --cov-report=json
# Tier: docker run --rm dqv:dev python scripts/check_coverage_tiers.py
# -------------------------------------------------------------------