/
Anna_brv
/
ASR-Service
Обзор
Документация
Войти
/
Anna_brv
/
ASR-Service
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
Dockerfile
40 строк
1 KB
Anna
first_commit
30 апр 2026, 21:52
30 апр 2026, 21:52
283885c
Код
Авторство
О чём код?
# Dockerfile for ASR service with CUDA 12.9 / cuDNN 8 support FROM nvidia/cuda:12.9.1-cudnn-runtime-ubuntu24.04 RUN apt-get update && \ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ca-certificates curl ffmpeg && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* WORKDIR /app # Установка uv COPY --from=ghcr.io/astral-sh/uv:0.9.2 /uv /bin/uv WORKDIR /app # Enable bytecode compilation ENV UV_COMPILE_BYTECODE=1 # Copy from the cache instead of linking since it's a mounted volume ENV UV_LINK_MODE=copy # Ensure installed tools can be executed out of the box ENV UV_TOOL_BIN_DIR=/usr/local/bin # Install Python 3.12 RUN uv python install 3.12 # Copy project files COPY ./src ./src/ COPY VERSION uv.lock pyproject.toml ./ # Install the project's dependencies using the lockfile and settings # Temporarily removing --locked flag to allow regeneration of lockfile RUN --mount=type=cache,target=/root/.cache/uv \ uv sync --no-dev # Install the project in editable mode to make it available to the Python environment # RUN uv pip install --editable . # Создание директорий для моделей и временных файлов (согласно config.py) RUN mkdir -p $HOME/.cache/huggingface/hub && mkdir -p /tmp/asr_uploads && mkdir -p /tmp/asr_models # Install debugpy for debugging RUN uv pip install debugpy --target /tmp