mirror of
https://github.com/placeholder-soft/chroma.git
synced 2026-04-29 04:14:59 +08:00
rebuild hnswlib on Docker launch
This commit is contained in:
@@ -9,8 +9,9 @@ COPY ./requirements.txt requirements.txt
|
||||
|
||||
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
||||
|
||||
COPY ./bin/docker_entrypoint.sh /docker_entrypoint.sh
|
||||
COPY ./ /chroma
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD ["uvicorn", "chromadb.app:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "1", "--proxy-headers"]
|
||||
CMD ["/docker_entrypoint.sh"]
|
||||
|
||||
5
bin/docker_entrypoint.sh
Executable file
5
bin/docker_entrypoint.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Rebuilding hnsw to ensure architecture compatibility"
|
||||
pip install --force-reinstall --no-cache-dir hnswlib
|
||||
uvicorn chromadb.app:app --workers 1 --host 0.0.0.0 --port 8000
|
||||
Reference in New Issue
Block a user