sreepathi-ravikumar commited on
Commit
e5b847a
·
verified ·
1 Parent(s): ea61457

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -15,7 +15,7 @@ RUN pip install maturin
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
@@ -27,5 +27,8 @@ RUN maturin build --release --manifest-path sample_rust/Cargo.toml
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"]
 
15
  # Set working directory
16
  WORKDIR /app
17
 
18
+ # Copy your project files (including app.py and requirements.txt)
19
  COPY . .
20
 
21
  # Install Python dependencies
 
27
  # Install the generated wheel
28
  RUN pip install sample_rust/target/wheels/*.whl
29
 
30
+ # Expose port Hugging Face uses
31
+ EXPOSE 7860
32
+
33
+ # Start the Flask app
34
  CMD ["python3", "app.py"]