# Dockerfile FROM python:3.11.8-slim # Install system dependencies RUN apt-get update && apt-get install -y \ build-essential \ portaudio19-dev \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* # Set working directory WORKDIR /app # Copy and install Python dependencies COPY requirements.txt ./ RUN pip install --no-cache-dir -r requirements.txt # Install gdown so we can download from Google Drive RUN pip install gdown RUN gdown "https://drive.google.com/uc?id=1suMJ0qgG5-oLhm_Jmyy7sst_myuiI2zg" -O random_forest_model.pkl # Copy your application code COPY . /app # Expose Streamlit port EXPOSE 8501 # Run the app CMD ["sh", "-c", "streamlit run app.py --server.port=${PORT:-8501} --server.address=0.0.0.0"]