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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -15,14 +15,14 @@ RUN pip install maturin
15
  # Set working directory
16
  WORKDIR /app
17
 
18
- # Copy your code
19
  COPY . .
20
 
21
- # Build the Python wheel using maturin
22
  RUN maturin build --release --manifest-path sample_rust/Cargo.toml
23
 
24
- # Install the built wheel from the correct path
25
  RUN pip install sample_rust/target/wheels/*.whl
26
 
27
- # Default command
28
- CMD ["python3"]
 
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"]