Rag_ChatBot / Dockerfile
Dus Tran
fix: change port to 7860 for huggingface spaces
00232fc
Raw
History Blame Contribute Delete
380 Bytes
FROM python:3.12-slim
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN mkdir -p /app/data /app/VectorDB
EXPOSE 7860
CMD uvicorn api:app --host 0.0.0.0 --port 7860