Pre-build ChromaDB icons index in Docker image
Avoids 3-10 min CPU-heavy index rebuild on every container start. ONNX model + icons index baked into image at build time. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
40c22e8d47
commit
f2b65df132
1 changed files with 3 additions and 0 deletions
|
|
@ -36,5 +36,8 @@ RUN mkdir -p chroma/models && \
|
|||
https://chroma-onnx-models.s3.amazonaws.com/all-MiniLM-L6-v2/onnx.tar.gz && \
|
||||
tar -xzf chroma/models/onnx.tar.gz -C chroma/models/
|
||||
|
||||
# Pre-build ChromaDB icons index so API starts instantly (not rebuilt each run)
|
||||
RUN python -c "from services.icon_finder_service import ICON_FINDER_SERVICE; print('Icons index ready')"
|
||||
|
||||
EXPOSE 8000
|
||||
CMD ["uvicorn", "api.main:app", "--host", "0.0.0.0", "--port", "8000"]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue