Sana42's picture
FastAPI zero-shot classification with DeBERTa-v3-xsmall
b1b21fa
raw
history blame contribute delete
351 Bytes
# Use official Python 3.10 image
FROM python:3.10-slim
# Set working directory
WORKDIR /app
# Copy files
COPY main.py .
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose port for FastAPI
EXPOSE 8000
# Run app with Uvicorn
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]