sreepathi-ravikumar commited on
Commit
997e5d9
·
verified ·
1 Parent(s): 68430bf

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -2
Dockerfile CHANGED
@@ -20,8 +20,13 @@ RUN pip install maturin
20
  # Copy your codebase
21
  COPY . .
22
 
23
- # Install the Rust module directly into Python env
24
- RUN maturin develop --release --manifest-path sample_rust/Cargo.toml
 
 
 
 
 
25
 
26
  # Install Python dependencies
27
  RUN pip install -r requirements.txt
 
20
  # Copy your codebase
21
  COPY . .
22
 
23
+ # Install Rust + Python + maturin earlier...
24
+
25
+ # Build the Python extension
26
+ RUN maturin build --release --manifest-path sample_rust/Cargo.toml
27
+
28
+ # Install the generated wheel
29
+ RUN pip install target/wheels/*.whl
30
 
31
  # Install Python dependencies
32
  RUN pip install -r requirements.txt