-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (21 loc) · 855 Bytes
/
Dockerfile
File metadata and controls
27 lines (21 loc) · 855 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
FROM python:3.11-slim
WORKDIR /app
# Install system deps (some vfb_connect/pandas wheels need these)
RUN apt-get update && \
apt-get install -y --no-install-recommends gcc g++ && \
rm -rf /var/lib/apt/lists/*
# Install Python deps first (layer caching)
COPY requirements.txt setup.py pyproject.toml README.md ./
COPY src/ src/
RUN pip install --no-cache-dir aiohttp && \
pip install --no-cache-dir -e .
EXPOSE 8080
# Tuning via env vars:
# VFBQUERY_PORT (default 8080)
# VFBQUERY_HOST (default 0.0.0.0)
# VFBQUERY_WORKERS (default: 10)
# VFBQUERY_MAX_CONCURRENT (default: workers × 2)
# VFBQUERY_MAX_QUEUE_DEPTH (default: 200, 0 = unlimited)
# VFBQUERY_CACHE_TTL (default: 300 seconds)
# VFBQUERY_SOLR_WRITE_TIMEOUT (default: 30 seconds)
ENTRYPOINT ["python", "-m", "vfbquery.ha_api"]