Hardcode the link (#6985)

* Hardcode the link

* Fix image build
This commit is contained in:
tellet-q
2025-08-06 11:24:16 +02:00
committed by timvisee
parent 8be66adfc3
commit b33e741229
2 changed files with 7 additions and 6 deletions

View File

@@ -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.

View File

@@ -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