Skip to content

Commit 3510f27

Browse files
committed
Update dockerfile to debian-slim
1 parent 2eda03c commit 3510f27

4 files changed

Lines changed: 3895 additions & 11 deletions

File tree

Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,14 @@ COPY . .
1414

1515
RUN cargo build --release -p skardi-server
1616

17-
# Runtime stage - distroless/cc includes libstdc++ and ca-certificates
18-
FROM gcr.io/distroless/cc-debian12
17+
# Runtime stage - debian-slim includes all required runtime dependencies
18+
FROM debian:trixie-slim
19+
20+
RUN apt-get update && apt-get install -y \
21+
libssl3t64 \
22+
zlib1g \
23+
ca-certificates \
24+
&& rm -rf /var/lib/apt/lists/*
1925

2026
COPY --from=builder /app/target/release/skardi-server /usr/local/bin/skardi-server
2127

crates/model/src/onnx/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,6 @@ impl OnnxModelRegistry {
330330
.commit();
331331
}
332332

333-
tracing::info!("Loading ONNX model from '{}'", model_path);
334333
let model = Arc::new(OnnxModel::new(model_path)?);
335334

336335
tracing::debug!(

demo/onnx_predict/ctx_movie_recommendation.yaml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
data_sources:
22
- name: "movies"
3-
type: "postgres"
4-
connection_string: "postgresql://localhost:5432/test?sslmode=disable"
5-
options:
6-
table: "movies" # Required: table name to register
7-
schema: "public" # Optional: schema name (default: "public")
8-
user_env: "PG_USER" # Optional: environment variable for username
9-
pass_env: "PG_PASSWORD" # Optional: environment variable for password
10-
description: "PostgreSQL movies table with movie_id, title, genres, year, and genres_list"
3+
type: "csv"
4+
path: "demo/sample_data/movies.csv"
5+
description: "CSV file with movie_id, title, genres, year, and genres_list"
116

127
- name: "movie_embeddings"
138
type: "lance"

0 commit comments

Comments
 (0)