# Use an Ubuntu-based Python image FROM ubuntu:22.04 # Set working directory WORKDIR /app # Install system dependencies RUN apt-get update && apt-get install -y \ build-essential \ curl \ software-properties-common \ git \ python3 \ python3-pip \ && rm -rf /var/lib/apt/lists/* # Copy application files COPY . . # Install Python dependencies RUN pip3 install --no-cache-dir -r requirements.txt # Expose Streamlit port EXPOSE 8501 # Command to run the Streamlit app CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]