# Use official CUDA 12.1 image with Ubuntu FROM python:3.11-slim # Set working directory WORKDIR /app # Upgrade pip RUN pip3 install --upgrade pip # Copy Python dependencies ADD requirements.txt . RUN pip3 install -r requirements.txt # Expose port EXPOSE 7860 # Copy application code COPY app ./app # Run the application CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]