-
-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathDockerfile.test
More file actions
25 lines (19 loc) · 686 Bytes
/
Dockerfile.test
File metadata and controls
25 lines (19 loc) · 686 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
# syntax=docker/dockerfile:1
FROM python:3.13-slim
WORKDIR /app
# Install system dependencies (if needed)
RUN apt-get update && apt-get install -y \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements
COPY requirements.txt ./
COPY tests/requirements.txt ./tests/
# Install Python dependencies
RUN pip install --upgrade pip \
&& pip install -r requirements.txt \
&& pip install -r tests/requirements.txt
# Copy the rest of the code
COPY zero zero
COPY tests tests
# Run tests (default command)
CMD ["python3", "-m", "pytest", "tests", "--cov=zero", "--cov-report=term-missing", "--cov-config=.coveragerc", "-vv", "--durations=10", "--timeout=280"]