Selaa lähdekoodia

ci(searcher): add sqlite deps

iwanhae 1 vuosi sitten
vanhempi
commit
7c90c3bd56
2 muutettua tiedostoa jossa 9 lisäystä ja 1 poistoa
  1. 4 1
      searcher/.dockerignore
  2. 5 0
      searcher/Dockerfile

+ 4 - 1
searcher/.dockerignore

@@ -11,4 +11,7 @@ Cargo.lock
 **/*.rs.bk
 
 # MSVC Windows builds of rustc generate these, which store debugging information
-*.pdb
+*.pdb
+
+Dockerfile
+Dockerfile.*

+ 5 - 0
searcher/Dockerfile

@@ -25,8 +25,13 @@ RUN cargo install --path . -F mkl
 ENV HF_HOME=/model
 RUN kuberian --ci
 
+FROM debian:11 as sqlite-fetcher
+RUN apt update
+RUN apt-get install -y sqlite3
+
 FROM gcr.io/distroless/cc-debian11
 WORKDIR /app
+COPY --from=sqlite-fetcher /usr/lib/x86_64-linux-gnu/libsqlite3.so.* /usr/lib/
 COPY --from=builder /opt/intel/oneapi/compiler/latest/linux/compiler/lib/intel64_lin/libiomp5.so /usr/lib/
 COPY --from=builder /model /model
 COPY --from=builder /usr/local/cargo/bin/kuberian /usr/local/bin/kuberian