forked from langwatch/langwatch
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.langevals
More file actions
36 lines (25 loc) · 1 KB
/
Copy pathDockerfile.langevals
File metadata and controls
36 lines (25 loc) · 1 KB
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
FROM python:3.11.6-slim
# Install uv
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
WORKDIR /usr/src/app
RUN pip install --target . awslambdaric
# Copy workspace config and lock file
COPY langevals/pyproject.toml langevals/uv.lock ./
# Copy workspace members
COPY langevals/langevals_core/ langevals_core/
COPY langevals/evaluators/ evaluators/
COPY langevals/notebooks/pyproject.toml notebooks/
# Install dependencies (frozen from lock file, no dev deps, all extras)
RUN uv sync --frozen --no-dev --all-extras
# Copy application code
COPY langevals/langevals/ langevals/
# Preload evaluators
RUN PYTHONPATH="." uv run python langevals/server.py --preload
ENV RUNNING_IN_DOCKER=true
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONPYCACHEPREFIX=/tmp/pycache
ENV PATH="/usr/src/app/.venv/bin:$PATH"
# Copy remaining project files (scripts, docs, etc.)
COPY langevals/scripts/ scripts/
COPY langevals/Makefile langevals/README.md langevals/LICENSE.md ./
CMD ["python", "-c", "from langevals.server import main; main()"]