IBAhive-RAG / Dockerfile
Rashid Hussain
Project docker file
f68050d
raw
history blame contribute delete
706 Bytes
# Hugging Face Docker Space — IBAhive (Flask + static dist + RAG)
# https://huggingface.co/docs/hub/spaces-sdks-docker
# Listens on $PORT (Spaces sets this; default 7860 in api.py).
FROM python:3.11-slim-bookworm
RUN apt-get update && apt-get install -y --no-install-recommends libgomp1 \
&& rm -rf /var/lib/apt/lists/* \
&& useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"
ENV PYTHONUNBUFFERED=1
WORKDIR /app
COPY --chown=user requirements.txt .
RUN pip install --no-cache-dir --upgrade pip \
&& pip install --no-cache-dir -r requirements.txt
COPY --chown=user app ./app
COPY --chown=user api.py ./api.py
COPY --chown=user dist ./dist
CMD ["python", "api.py"]