fix: make Rust ML Docker build include ONNX runtime assets
- Add 'download-binaries' feature to ort crate in Cargo.toml to ensure ONNX Runtime binaries are downloaded during build - Update .dockerignore to allow Machine_Learning/model/model.onnx through build context while still excluding other generated model artifacts (saved_model, tfjs_model, tflite) - Dockerfile can now successfully copy model.onnx at runtime Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Code
parent
d33f334dc1
commit
ba33bc1f23
@@ -13,6 +13,7 @@ Machine_Learning/dataset
|
|||||||
Machine_Learning/dataset.zip
|
Machine_Learning/dataset.zip
|
||||||
Machine_Learning/dataset_*.zip
|
Machine_Learning/dataset_*.zip
|
||||||
Machine_Learning/model
|
Machine_Learning/model
|
||||||
|
!Machine_Learning/model/model.onnx
|
||||||
Machine_Learning/best_model/*
|
Machine_Learning/best_model/*
|
||||||
!Machine_Learning/best_model/best_model.keras
|
!Machine_Learning/best_model/best_model.keras
|
||||||
apps/web/dist
|
apps/web/dist
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ anyhow = "1.0"
|
|||||||
axum = { version = "0.7", features = ["multipart"] }
|
axum = { version = "0.7", features = ["multipart"] }
|
||||||
image = "0.25"
|
image = "0.25"
|
||||||
ndarray = "0.15"
|
ndarray = "0.15"
|
||||||
ort = "2.0.0-rc.10"
|
ort = { version = "2.0.0-rc.10", features = ["download-binaries"] }
|
||||||
serde = { version = "1.0", features = ["derive"] }
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
serde_json = "1.0"
|
serde_json = "1.0"
|
||||||
tokio = { version = "1.0", features = ["macros", "rt-multi-thread", "net"] }
|
tokio = { version = "1.0", features = ["macros", "rt-multi-thread", "net"] }
|
||||||
|
|||||||
Reference in New Issue
Block a user