FROM nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu22.04 ENV DEBIAN_FRONTEND=noninteractive ENV PYTHONDONTWRITEBYTECODE=1 ENV PYTHONUNBUFFERED=1 # Install Python and dependencies RUN apt-get update && apt-get install -y \ python3 python3-pip ffmpeg curl git wget \ && rm -rf /var/lib/apt/lists/* RUN ln -s /usr/bin/python3 /usr/bin/python RUN pip install --upgrade pip # Create app directory WORKDIR /app # Copy requirements and install COPY requirements.txt . RUN pip install -r requirements.txt # Copy the app code into the image COPY . . # Ensure the custom interface is in place # Optional as already in src/, but ensures it's updated RUN wget -O src/custome_interface.py https://huggingface.co/Jzuluaga/accent-id-commonaccent_xlsr-en-english/resolve/main/custom_interface.py # Pulling LLaMA model (optional pre-pull) RUN curl -fsSL https://ollama.com/install.sh | sh && ollama pull gemma3 EXPOSE 8501 CMD ["streamlit", "run", "streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]