# Use the official Python image FROM python:3.9-slim # Set the working directory WORKDIR /app # Copy application files COPY . . # Install dependencies RUN pip install --no-cache-dir fastapi uvicorn transformers torch pillow opencv-python-headless # Expose port 8000 for FastAPI EXPOSE 8000 # Command to run the FastAPI app CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]