Closed mango009 closed 1 year ago
Docker build failed:
v0vten@Ursu14-Focal-Mango:~/tools/rust-sbert$ docker build -t tch-converter -f utils/Dockerfile . [+] Building 111.2s (11/12) docker:default => [internal] load .dockerignore 0.0s => => transferring context: 102B 0.0s => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 820B 0.0s => [internal] load metadata for docker.io/library/python:3.8-slim 0.0s => CACHED [1/8] FROM docker.io/library/python:3.8-slim 0.0s => [internal] load build context 0.0s => => transferring context: 63.22kB 0.0s => [2/8] RUN apt-get update && apt-get install -y clang curl unzip libssl-dev pkg-config make 27.1s => [3/8] RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -y --default-toolchain 1.43.1-x86_64-unknown-linux- 27.9s => [4/8] RUN pip install torch==1.6.0+cpu -f https://download.pytorch.org/whl/torch_stable.html 16.8s => [5/8] COPY Cargo.toml Cargo.lock ./ 0.0s => [6/8] COPY src/bin ./src/bin 0.0s => ERROR [7/8] RUN touch src/lib.rs && cargo build --bin=convert-tensor 39.3s ------ > [7/8] RUN touch src/lib.rs && cargo build --bin=convert-tensor: 0.377 Updating crates.io index 39.23 error: failed to select a version for the requirement `regex = "= 1.9.1"` 39.23 candidate versions found which didn't match: 1.8.4, 1.8.3, 1.8.2, ... 39.23 location searched: crates.io index 39.23 required by package `rust_tokenizers v7.0.2` 39.23 ... which is depended on by `sbert v0.4.0 (/)` ------ Dockerfile:33 -------------------- 31 | COPY src/bin ./src/bin 32 | 33 | >>> RUN touch src/lib.rs && cargo build --bin=convert-tensor 34 | 35 | COPY utils/prepare_distilbert.py ./ -------------------- ERROR: failed to solve: process "/bin/sh -c touch src/lib.rs && cargo build --bin=convert-tensor" did not complete successfully: exit code: 101
Docker build failed: