FROM python:3.8 # Expose port 8501 EXPOSE 8501 # Set working directory WORKDIR /app # Copy requirements file COPY requirements.txt ./requirements.txt # Install system dependencies RUN apt-get update && \ apt-get install -y ffmpeg libsm6 libxext6 # Install Python dependencies RUN pip3 install -r requirements.txt # Copy the application code COPY . . # Set the PORT environment variable ENV PORT=8501 # Command to run the Streamlit app CMD streamlit run --server.port $PORT app.py