-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.test
More file actions
29 lines (22 loc) · 819 Bytes
/
Copy pathDockerfile.test
File metadata and controls
29 lines (22 loc) · 819 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
29
FROM python:3.14-slim
# Install system dependencies including build tools for compiling Python packages
RUN apt-get update && apt-get install -y --no-install-recommends \
libmagic1 \
gcc \
g++ \
make \
libffi-dev \
&& rm -rf /var/lib/apt/lists/*
# Install poetry
RUN pip install --no-cache-dir poetry
# Set working directory
WORKDIR /app
# Copy poetry files
COPY pyproject.toml poetry.lock* ./
# Configure poetry to not create virtual environments (we're in a container)
RUN poetry config virtualenvs.create false
# Install dependencies including dev dependencies (pytest, gunicorn, httpbin, etc.)
RUN poetry install --no-root
# The actual code will be mounted as a volume at runtime
# httpbin server is started automatically by pytest conftest.py fixture
CMD ["poetry", "run", "pytest"]