-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.test
More file actions
34 lines (27 loc) · 811 Bytes
/
Dockerfile.test
File metadata and controls
34 lines (27 loc) · 811 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
FROM python:3.12-slim
WORKDIR /app
# Install build dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Install dependencies
COPY pyproject.toml .
COPY src/ src/
COPY README.md .
# Install with dev dependencies
RUN pip install --no-cache-dir .[dev]
# Copy test files
COPY tests/ tests/
COPY benchmarks/ benchmarks/
COPY bench_config.toml .
COPY loss_test_config.toml .
COPY smoke_test.py .
COPY smoke_config.toml .
COPY smoke_graphite_config.toml .
COPY smoke_test_graphite.py .
COPY run_bench.sh .
# Setup Prometheus multiprocess dir
RUN mkdir -p /tmp/prometheus_multiproc && chmod 777 /tmp/prometheus_multiproc
ENV PROMETHEUS_MULTIPROC_DIR=/tmp/prometheus_multiproc
# Default command
CMD ["python", "smoke_test.py"]