Likhith Sai Seemala
Deploy IntentForge v2 to HF Spaces
0ca462b
Raw History Blame Contribute Delete
849 Bytes
FROM python:3.11-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
curl \
&& rm -rf /var/lib/apt/lists/*
# Install dependencies directly DONT REDOWNLOAD, the packages are heavy as fuck
RUN pip install \
fastapi \
uvicorn[standard] \
meilisearch \
pydantic \
pydantic-settings \
onnxruntime \
numpy \
transformers \
torch --extra-index-url https://download.pytorch.org/whl/cpu \
sentence-transformers \
redis \
prometheus-client \
slowapi \
scikit-learn \
nltk \
aiohttp \
python-multipart
# Copy application code
COPY app/ /app/app/
# Set environment variable
ENV PYTHONPATH=/app
# Expose port
EXPOSE 8000
# Run the unified service
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]