sreepathi-ravikumar commited on
Commit
f8692ea
·
verified ·
1 Parent(s): e3b7539

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -4
Dockerfile CHANGED
@@ -15,14 +15,17 @@ RUN pip install maturin
15
  # Set working directory
16
  WORKDIR /app
17
 
18
- # Copy all project files (including app.py and sample_rust)
19
  COPY . .
20
 
21
- # Build the wheel using maturin
 
 
 
22
  RUN maturin build --release --manifest-path sample_rust/Cargo.toml
23
 
24
- # Install the built wheel
25
  RUN pip install sample_rust/target/wheels/*.whl
26
 
27
- # Run your Python script automatically
28
  CMD ["python3", "app.py"]
 
15
  # Set working directory
16
  WORKDIR /app
17
 
18
+ # Copy your project files (app.py, requirements.txt, sample_rust/)
19
  COPY . .
20
 
21
+ # Install Python dependencies
22
+ RUN pip install -r requirements.txt
23
+
24
+ # Build Rust extension
25
  RUN maturin build --release --manifest-path sample_rust/Cargo.toml
26
 
27
+ # Install the generated wheel
28
  RUN pip install sample_rust/target/wheels/*.whl
29
 
30
+ # Run your Flask app
31
  CMD ["python3", "app.py"]