-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (27 loc) · 1.03 KB
/
Dockerfile
File metadata and controls
37 lines (27 loc) · 1.03 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
# MurmurAI - GPU-powered transcription
# Using cudnn variant for speaker diarization support (cuDNN 9 required by ctranslate2 >= 4.5.0)
# CUDA 12.8 provides ~7.6% faster performance vs 12.6 (benchmarked 2024-12)
FROM nvidia/cuda:12.8.0-cudnn-runtime-ubuntu22.04
ENV DEBIAN_FRONTEND=noninteractive
WORKDIR /app
# Install uv
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
# Install Python 3.12 + venv
RUN uv python install 3.12 && uv venv /app/.venv --python 3.12
ENV VIRTUAL_ENV=/app/.venv
ENV PATH="/app/.venv/bin:$PATH"
# Copy manifests first to leverage layer caching
COPY pyproject.toml uv.lock ./
# Install dependencies from lock file (cached unless deps change)
RUN uv sync --frozen --no-dev --no-install-project
# Copy source code (changes here don't invalidate dep cache)
COPY src/ ./src/
# Install the project itself (fast, no deps to resolve)
RUN uv pip install --no-deps .
# Runtime config
RUN mkdir -p /app/data
EXPOSE 8880
ENV MURMURAI_HOST=0.0.0.0
ENV MURMURAI_PORT=8880
ENV MURMURAI_DATA_DIR=/app/data
CMD ["murmurai"]