# Use a pre-built Detectron2 image FROM detectron2/detectron2:v0.6-cpu # Install additional dependencies RUN pip install --no-cache-dir gradio opencv-python Pillow numpy requests # Set the working directory WORKDIR /app # Copy application files COPY . . # Expose port for Gradio EXPOSE 7860 # Run the application CMD ["python", "app.py"]