# Use a base image with Python FROM python:3.10-slim # Install system dependencies RUN apt-get update && apt-get install -y \ libgl1-mesa-glx libglu1-mesa freeglut3 \ libx11-6 libxext6 libxi6 libxmu6 libgl1-mesa-dev \ libglu1-mesa-dev libxmu-dev libxi-dev \ && apt-get clean && rm -rf /var/lib/apt/lists/* # Set environment variables ENV DEBIAN_FRONTEND=noninteractive # Install Python dependencies COPY requirements.txt /tmp/requirements.txt RUN pip install --no-cache-dir -r /tmp/requirements.txt # Copy app COPY app.py /app/app.py WORKDIR /app # Expose Streamlit default port EXPOSE 7860 # Run the Streamlit app CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]