-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (27 loc) · 1 KB
/
Dockerfile
File metadata and controls
37 lines (27 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
37
# syntax=docker/dockerfile:1
FROM nvidia/cuda:12.1.1-devel-ubuntu22.04
ENV DEBIAN_FRONTEND=noninteractive \
PYTHONUNBUFFERED=1 \
UV_LINK_MODE=copy
# System dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
git curl ca-certificates \
libsndfile1 libgl1 libglib2.0-0 \
espeak-ng flite \
&& rm -rf /var/lib/apt/lists/*
# Install uv
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /usr/local/bin/
WORKDIR /app
# Install dependencies first (cache-friendly)
COPY pyproject.toml uv.lock ./
RUN uv sync --frozen --no-install-project
# Copy project source
COPY . .
# Install the project itself (with notebook extra for Jupyter support)
RUN uv sync --frozen --extra notebook
EXPOSE 8888
# Working directory at project root (timelyllm/, dataset/, run_experiments.ipynb all visible)
WORKDIR /app
# CLI entrypoint: cd into timelyllm/ for correct relative paths
ENTRYPOINT ["sh", "-c", "cd timelyllm && uv run python3 rtllm.py \"$@\"", "--"]
CMD ["--list-presets"]