mirror of
https://github.com/placeholder-soft/chroma.git
synced 2026-01-12 17:02:54 +08:00
17 lines
447 B
Docker
17 lines
447 B
Docker
FROM --platform=linux/amd64 python:3.10 AS chroma_server
|
|
|
|
#RUN apt-get update -qq
|
|
#RUN apt-get install python3.10 python3-pip -y --no-install-recommends && rm -rf /var/lib/apt/lists_/*
|
|
|
|
WORKDIR /chroma
|
|
|
|
COPY ./requirements.txt requirements.txt
|
|
|
|
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
|
|
|
COPY ./chroma /chroma/
|
|
|
|
EXPOSE 8000
|
|
|
|
CMD ["uvicorn", "chroma.server.fastapi:app", "--host", "0.0.0.0", "--port", "8000", "--proxy-headers"]
|