FROM python:3.10-slim # Set working directory WORKDIR /app # Copy requirements COPY requirements.txt . # Install dependencies RUN pip install --no-cache-dir -r requirements.txt # Copy application files COPY . . # Expose port (HF Spaces uses port 7860 by default) EXPOSE 7860 # Set environment variables ENV PORT=7860 # Run the application CMD ["python", "annotation_app.py"]