# 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"]