mirror of
https://github.com/qdrant/qdrant.git
synced 2026-07-23 11:11:00 -05:00
@@ -84,6 +84,11 @@ ARG LINKER=mold
|
||||
# Enable GPU support
|
||||
ARG GPU
|
||||
|
||||
# Download and extract web UI
|
||||
COPY tools/ tools/
|
||||
COPY docs/ docs/
|
||||
RUN mkdir /static && STATIC_DIR=/static ./tools/sync-web-ui.sh
|
||||
|
||||
COPY --from=planner /qdrant/recipe.json recipe.json
|
||||
# `PKG_CONFIG=...` is a workaround for `xx-cargo` bug for crates using `pkg-config`!
|
||||
#
|
||||
@@ -108,10 +113,6 @@ RUN PKG_CONFIG="/usr/bin/$(xx-info)-pkg-config" \
|
||||
&& PROFILE_DIR=$(if [ "$PROFILE" = dev ]; then echo debug; else echo $PROFILE; fi) \
|
||||
&& mv target/$(xx-cargo --print-target-triple)/$PROFILE_DIR/qdrant /qdrant/qdrant
|
||||
|
||||
# Download and extract web UI
|
||||
RUN mkdir /static && STATIC_DIR=/static ./tools/sync-web-ui.sh
|
||||
|
||||
|
||||
# Dockerfile does not support conditional `FROM` directly.
|
||||
# To workaround this limitation, we use a multi-stage build with a different base images which have equal name to ARG value.
|
||||
|
||||
|
||||
@@ -7,8 +7,8 @@ OPENAPI_FILE=${OPENAPI_DIR:-"./docs/redoc/master/openapi.json"}
|
||||
|
||||
# Download `dist.zip` from the latest release of https://github.com/qdrant/qdrant-web-ui and unzip given folder
|
||||
|
||||
# Get latest dist.zip, assume jq is installed
|
||||
DOWNLOAD_LINK=$(curl --retry 5 --retry-all-errors --silent "https://api.github.com/repos/qdrant/qdrant-web-ui/releases/latest" | jq -r '.assets[] | select(.name=="dist-qdrant.zip") | .browser_download_url')
|
||||
# Get latest dist.zip
|
||||
DOWNLOAD_LINK="https://github.com/qdrant/qdrant-web-ui/releases/latest/download/dist-qdrant.zip"
|
||||
|
||||
if command -v wget &> /dev/null
|
||||
then
|
||||
|
||||
Reference in New Issue
Block a user