RAG_backend / Dockerfile
vinimoreira's picture
update dockerfile
f044e19 verified
FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
COPY . .
ENV HUGGINGFACE_HUB_CACHE=/app/huggingface_cache
RUN mkdir -p /app/huggingface_cache && \
chmod -R 777 /app/huggingface_cache
RUN python src/download_models.py
CMD ["uvicorn", "api.main:app", "--host", "0.0.0.0", "--port", "7860"]