Team Ai
Apppublic

Shanmukha2491/Email_Classification

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
Dockerfile22 linesDownload Raw Back to root
1FROM python:3.9-slim2 3WORKDIR /app4 5# Install system deps + spacy model6RUN apt-get update && \7    apt-get install -y gcc python3-dev && \8    rm -rf /var/lib/apt/lists/* && \9    python -m pip install --upgrade pip10 11# Install Python dependencies12COPY requirements.txt .13RUN pip install --no-cache-dir -r requirements.txt && \14    python -m spacy download en_core_web_sm15 16# Copy application17COPY . .18 19# Run on port 8000 (required for Hugging Face)20EXPOSE 800021 22CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "8000"]