forked from chroma-core/chroma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
40 lines (29 loc) · 1011 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
FROM python:3.10-slim-bookworm as builder
RUN apt-get update --fix-missing && apt-get install -y --fix-missing \
build-essential \
gcc \
g++ \
cifs-utils && \
rm -rf /var/lib/apt/lists/*
RUN mkdir /install
WORKDIR /install
COPY ./requirements.txt requirements.txt
RUN pip install --no-cache-dir --upgrade --prefix="/install" -r requirements.txt
FROM python:3.10-slim-bookworm as final
# ARG STORAGEACCT
# ARG STORAGEKEY
RUN apt-get update --fix-missing && apt-get install -y --fix-missing \
build-essential \
gcc \
g++ && \
rm -rf /var/lib/apt/lists/*
RUN mkdir /chroma
# RUN chmod 777 -R /chroma
# # Mount Azure File Storage
# RUN mount -t cifs //$STORAGEACCT.file.core.windows.net/testingdb /chroma -o vers=3.0,username=$STORAGEACCT,password=$STORAGEKEY,dir_mode=0777,file_mode=0777,serverino
WORKDIR /chroma
COPY --from=builder /install /usr/local
COPY ./bin/docker_entrypoint.sh /docker_entrypoint.sh
COPY ./ /chroma
EXPOSE 8000
CMD ["/docker_entrypoint.sh"]