File size: 541 Bytes
3cc3103
 
 
 
 
 
 
 
 
 
 
 
89aa0c5
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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"]