Spaces:
Sleeping
Sleeping
File size: 624 Bytes
3194955 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
#CHATFED_ORCHESTRATOR
FROM python:3.11.11
# ---------- Create Non-Root User ----------
# Ensures proper file permissions for dev and runtime
RUN useradd -m -u 1000 user
WORKDIR /app
# install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# ---------- Copy Project Files ----------
# Set appropriate ownership and permissions
COPY --link --chown=1000 . .
# fastapi and gradio
EXPOSE 7860
# launch with unbuffered output
# Use main_prod.py for production with full RAG functionality
# Use main.py for testing mode with startup validation
CMD ["python", "-u", "src/main.py"]
|