black44 commited on
Commit
ef1a5fb
·
verified ·
1 Parent(s): 552b5a0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -5
Dockerfile CHANGED
@@ -19,8 +19,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
19
 
20
  # Copy requirements and install Python dependencies
21
  COPY requirements.txt .
22
- RUN pip install --no-cache-dir --root-user-action=ignore \
23
- numpy<2.0 protobuf && \
 
 
24
  pip install --no-cache-dir --root-user-action=ignore -r requirements.txt
25
 
26
  # Download Bark TTS model
@@ -51,10 +53,10 @@ except Exception as e:
51
  EOF
52
 
53
  # Copy application source code
54
- COPY app .
55
 
56
- # Expose port for Hugging Face Space
57
  EXPOSE 7860
58
 
59
  # Launch app using Uvicorn
60
- CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
 
19
 
20
  # Copy requirements and install Python dependencies
21
  COPY requirements.txt .
22
+ RUN pip install --no-cache-dir --root-user-action=ignore -U pip && \
23
+ pip install --no-cache-dir --root-user-action=ignore \
24
+ "numpy<2" \
25
+ "protobuf" && \
26
  pip install --no-cache-dir --root-user-action=ignore -r requirements.txt
27
 
28
  # Download Bark TTS model
 
53
  EOF
54
 
55
  # Copy application source code
56
+ COPY app.py .
57
 
58
+ # Expose port for the application
59
  EXPOSE 7860
60
 
61
  # Launch app using Uvicorn
62
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]