-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (22 loc) · 797 Bytes
/
Dockerfile
File metadata and controls
31 lines (22 loc) · 797 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
FROM python:3.13-slim
# Install runtime and build dependencies (git is needed for Gitpython, which is a dependency of Ragas)
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
&& rm -rf /var/lib/apt/lists/*
# Install UV package manager
COPY --from=ghcr.io/astral-sh/uv:0.9 /uv /bin/uv
# Copy dependency files
COPY pyproject.toml uv.lock ./
# Install dependencies using UV
RUN uv sync
# Copy scripts package to root dir
COPY scripts/ ./
# Create directories for data and results
RUN mkdir -p data/datasets data/experiments results
# Set environment variables
ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1
# Make scripts executable
RUN chmod +x *.py
# Set 'uv run python3' entrypoint so we can run scripts directly
ENTRYPOINT ["uv", "run", "python3"]