FROM python:3.10-slim WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY . . # Expose the port 7860 EXPOSE 7860 # environment variables ENV GRADIO_SERVER_NAME=0.0.0.0 # Run the Gradio app CMD ["python", "app.py"]