humza7656's picture
Upload 5 files
c5f114e verified
raw
history blame contribute delete
466 Bytes
# Use official Python image
FROM python:3.11-slim
# Set working directory
WORKDIR /app
# Copy requirements.txt first (for caching)
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt
# Copy app code and model files
COPY . .
# Expose port
EXPOSE 7860
# Run FastAPI app with Uvicorn
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]