titanium-logic-engine / Dockerfile
tejashsr's picture
Update Dockerfile
fb84c7a verified
raw
history blame contribute delete
485 Bytes
FROM python:3.9-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y build-essential && rm -rf /var/lib/apt/lists/*
# Install Python libraries
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Download Spacy model during build to save time
RUN python -m spacy download en_core_web_sm
# Copy your code
COPY . .
# Hugging Face uses port 7860 by default
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]