forked from qdrant/qdrant
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (22 loc) · 666 Bytes
/
Dockerfile
File metadata and controls
33 lines (22 loc) · 666 Bytes
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
FROM rust:1.58.1 as builder
COPY . ./qdrant
WORKDIR ./qdrant
ENV OPENBLAS_DYNAMIC_ARCH="1"
RUN apt-get update ; apt-get install -y clang libopenblas-dev libgfortran-10-dev gfortran
# Build actual target here
RUN cargo build --release --bin qdrant
FROM debian:bullseye-slim
ARG APP=/qdrant
RUN apt-get update \
&& apt-get install -y ca-certificates tzdata \
&& rm -rf /var/lib/apt/lists/*
EXPOSE 6333
EXPOSE 6334
ENV TZ=Etc/UTC \
RUN_MODE=production \
OPENBLAS_NUM_THREADS=1
RUN mkdir -p ${APP}
COPY --from=builder /qdrant/target/release/qdrant ${APP}/qdrant
COPY --from=builder /qdrant/config ${APP}/config
WORKDIR ${APP}
CMD ["./qdrant"]