FROM python:3.10-slim WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy the environment source COPY . . # Set environment variables for HF Spaces / Gradio ENV PYTHONUNBUFFERED=1 ENV PYTHONPATH=/app EXPOSE 7860 # Run the Gradio configuration app to interact with/view the environment CMD ["python", "app.py"]