mirror of
https://github.com/qdrant/qdrant.git
synced 2026-08-01 15:40:53 -05:00
The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-DEBIAN11-GNUTLS28-2419151 - https://snyk.io/vuln/SNYK-DEBIAN11-OPENSSL-2388380 - https://snyk.io/vuln/SNYK-DEBIAN11-OPENSSL-2426309 - https://snyk.io/vuln/SNYK-DEBIAN11-UTILLINUX-2401081 - https://snyk.io/vuln/SNYK-DEBIAN11-UTILLINUX-2401081
33 lines
587 B
Docker
33 lines
587 B
Docker
FROM rust:1.59 as builder
|
|
|
|
RUN apt-get update ; apt-get install -y clang ; rustup component add rustfmt
|
|
|
|
COPY . ./qdrant
|
|
WORKDIR ./qdrant
|
|
|
|
|
|
# Build actual target here
|
|
RUN cargo build --release --bin qdrant
|
|
|
|
FROM debian:11-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
|
|
|
|
RUN mkdir -p ${APP}
|
|
|
|
COPY --from=builder /qdrant/target/release/qdrant ${APP}/qdrant
|
|
COPY --from=builder /qdrant/config ${APP}/config
|
|
|
|
WORKDIR ${APP}
|
|
|
|
CMD ["./qdrant"]
|