# Use official Python image FROM python:3.10-slim # Set working directory WORKDIR /code # Install system dependencies RUN apt-get update && apt-get install -y \ build-essential \ && rm -rf /var/lib/apt/lists/* # Copy files into container COPY . /code # Install Python dependencies RUN pip install --no-cache-dir -r requirements.txt # Expose default port EXPOSE 7860 # Run the Solara app CMD ["solara", "run", "app.py", "--host", "0.0.0.0", "--port", "7860"]