Exact versions for direct dependencies, full pip freeze of the tested image as constraints, both Dockerfiles install with -c constraints.txt. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
11 lines
225 B
Docker
11 lines
225 B
Docker
FROM python:3.11-slim
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt requirements-dev.txt constraints.txt ./
|
|
RUN pip install --no-cache-dir -c constraints.txt -r requirements.txt -r requirements-dev.txt
|
|
|
|
COPY . .
|
|
|
|
CMD ["pytest", "-q"]
|