forked from KenForever1/triton-rs
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (19 loc) · 859 Bytes
/
Copy pathDockerfile
File metadata and controls
26 lines (19 loc) · 859 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM rust:slim AS builder
WORKDIR /home/juvoly
COPY Cargo.toml .
COPY Cargo.lock .
COPY triton-rs/ triton-rs/
COPY triton-sys/ triton-sys/
COPY example-backend/Cargo.toml example-backend/
COPY example-backend/src/ example-backend/src/
RUN cargo test --release
RUN cargo build --release --lib
################################################################################
# Test image (sanity check)
FROM nvcr.io/nvidia/tritonserver:25.08-py3 AS tester
WORKDIR /home/juvoly
COPY example-backend/tritonserver/model-repository/ /model-repository/
COPY --from=builder /home/juvoly/target/release/libtriton_example.so /model-repository/example-test/1/
COPY integration-test.sh .
# Start tritonserver and run in background for 2 seconds, capturing exit status
RUN sh integration-test.sh