parakeet-tdt-0.6b-v2 / Dockerfile
sungo-ganpare's picture
ffmpegを使用して大容量音声ファイルの処理を改善し、音声長の取得機能を追加
a89d03e
raw
history blame contribute delete
591 Bytes
# Use NVIDIA CUDA base image
FROM nvidia/cuda:11.8.0-runtime-ubuntu22.04
# Set working directory
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
python3 \
python3-pip \
git \
ffmpeg \
&& rm -rf /var/lib/apt/lists/*
# Copy only the necessary files
COPY requirements.txt .
COPY transcribe_cli.py .
# Install Python dependencies
RUN pip3 install --no-cache-dir -r requirements.txt
# Set environment variable for CUDA device
ENV CUDA_VISIBLE_DEVICES=0
# Set default command
ENTRYPOINT ["python3", "transcribe_cli.py", "/app/data"]