-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.bench
More file actions
30 lines (22 loc) · 800 Bytes
/
Copy pathDockerfile.bench
File metadata and controls
30 lines (22 loc) · 800 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
# Benchmark runner image for WarpDB.
#
# Installs production deps (for numpy) plus httpx (used by bench.py),
# then runs the benchmark suite against a remote WarpDB server.
#
# Usage (standalone):
# docker build -f Dockerfile.bench -t warpdb-bench .
# docker run --network host warpdb-bench --url http://localhost:8000
#
# Usage (with docker compose):
# docker compose up --build
FROM python:3.12-slim
WORKDIR /app
RUN pip install --no-cache-dir poetry
COPY pyproject.toml poetry.lock ./
# Install main deps (numpy) + dev group (httpx) — no virtualenv in container
RUN poetry config virtualenvs.create false \
&& poetry install --no-interaction --no-root
COPY src/ src/
COPY benchmarks/ benchmarks/
RUN poetry install --no-interaction
ENTRYPOINT ["python", "benchmarks/bench.py"]