# Use the official Streamlit base image FROM streamlit/streamlit:latest # Install additional dependencies RUN apt-get update && \ apt-get install -y libgl1-mesa-glx && \ rm -rf /var/lib/apt/lists/* # Set the working directory WORKDIR /app # Copy the app files to the container COPY . /app RUN pip install -r requirements.txt # Expose the Streamlit port EXPOSE 8501 # Run the Streamlit app CMD ["streamlit", "run", "--server.port", "8501", "app.py"]