Spaces:
Sleeping
Sleeping
| FROM python:3.12-slim | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| WORKDIR /app | |
| COPY --chown=user requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY --chown=user . . | |
| RUN python vector_stores/chroma_db/regulatory_docs/create_regulatory_db.py && \ | |
| python vector_stores/chroma_db/checklist_examples/create_industry_db.py && \ | |
| python vector_stores/chroma_db/product_specs/create_product_spec_db.py | |
| EXPOSE 7860 | |
| CMD ["gunicorn", "--timeout", "300", "-b", "0.0.0.0:7860", "app:app"] | |