qabot / Dockerfile
ethiotech4848's picture
Update Dockerfile
d8cdbfb verified
raw
history blame contribute delete
424 Bytes
# Use official Python image as base
FROM python:3.10-slim
# Set working directory
WORKDIR /app
# Copy requirements and install
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy app code and KB
COPY app.py .
COPY kb.json .
# Expose port for Huggingface Spaces (8000 is default for FastAPI)
EXPOSE 7860
# Run Uvicorn server
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]