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 && pip install --upgrade pip # Install Ollama RUN curl -fsSL https://ollama.com/install.sh | sh # Create app directory WORKDIR /app COPY requirements.txt . RUN pip install -r requirements.txt COPY . . # Ensure the custom interface is in place RUN wget -O src/custome_interface.py https://huggingface.co/Jzuluaga/accent-id-commonaccent_xlsr-en-english/resolve/main/custom_interface.py EXPOSE 8501 # Start Ollama and your app together CMD bash -c "ollama serve & sleep 5 && ollama pull gemma3 && streamlit run streamlit_app.py --server.port=8501 --server.address=0.0.0.0"