FROM python:3.10-slim # Set working directory WORKDIR /app # Copy application files COPY . /app # Install dependencies RUN pip install --no-cache-dir gradio modelscope gradio-imageslider opencv-python-headless # Expose Gradio's default port EXPOSE 7860 # Set environment variable for Gradio ENV GRADIO_SERVER_NAME=0.0.0.0 # Run the application CMD ["python", "app.py"]