forked from kubernetes-sigs/gateway-api-inference-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile-test
More file actions
38 lines (29 loc) · 778 Bytes
/
Dockerfile-test
File metadata and controls
38 lines (29 loc) · 778 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
30
31
32
33
34
35
36
37
38
# Dockerfile-test
FROM python:3.9-slim
# Install system dependencies
RUN apt-get update && apt-get install -y \
curl \
wget \
jq \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Copy requirements and install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Install additional testing dependencies
RUN pip install --no-cache-dir \
pytest \
pytest-asyncio \
requests \
httpx \
aiohttp
# Copy test files
COPY test_dual_server_client.py .
# Create test results directory
RUN mkdir -p /test-results
# Set environment variables
ENV PYTHONPATH=/app
ENV PYTHONUNBUFFERED=1
# Default command runs the specific test
CMD ["pytest", "-v", "-s", "test_dual_server_client.py"]