Swiftcheck / Dockerfile
yashgori20's picture
ueifu
89aa0c5
raw
history blame contribute delete
541 Bytes
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"]