web search done right
add onnx to dockerfile
Mikkel Denker689b5b012742
diff --git a/Dockerfile b/Dockerfileindex db1c1447..f83ae99b 100644--- a/Dockerfile+++ b/Dockerfile@@ -11,13 +11,17 @@ RUN apt-get update -y \libssl-dev \nodejs+RUN wget https://github.com/microsoft/onnxruntime/releases/download/v1.13.1/onnxruntime-linux-x64-1.13.1.tgz -P /tmp \+ && tar -xf /tmp/onnxruntime-linux-x64-1.13.1.tgz -C /tmp \+ && mv /tmp/onnxruntime-linux-x64-1.13.1/lib/* /usr/lib+RUN rustup toolchain install beta && rustup default beta && rustup component add rustfmtCOPY . .RUN cd frontend && npm install && npm run build-RUN cargo build --release \+RUN ORT_STRATEGY=system ORT_LIB_LOCATION=/usr/lib/libonnxruntime.so.1.13.1 cargo build --release \&& mkdir /cuely/bin \&& find target/release -maxdepth 1 -perm /a+x -type f -exec mv {} /cuely/bin \;@@ -36,5 +40,6 @@ WORKDIR /cuelyCOPY --from=builder /cuely/bin/cuely /usr/local/bin/cuelyCOPY --from=builder /cuely/frontend/dist frontend/dist+COPY --from=builder /usr/lib/libonnxruntime.so* /usr/libENTRYPOINT ["/usr/local/bin/cuely"]diff --git a/core/src/webgraph/mod.rs b/core/src/webgraph/mod.rsindex 30c3a1c7..b6160680 100644--- a/core/src/webgraph/mod.rs+++ b/core/src/webgraph/mod.rs@@ -551,7 +551,7 @@ impl<S: Store> Webgraph<S> {.push(segment);}- let segments = self+ self.segments = self.executor.map(|mut candidate| {@@ -565,8 +565,6 @@ impl<S: Store> Webgraph<S> {).unwrap();- self.segments = segments;-self.meta.comitted_segments = self.segments.iter().map(|segment| segment.id()).collect();self.garbage_collect();