Khubaib01 commited on
Commit
ed5bb1e
·
verified ·
1 Parent(s): 40c2114

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -7
Dockerfile CHANGED
@@ -23,22 +23,23 @@
23
 
24
 
25
 
26
- # Use official Python slim image
27
  FROM python:3.10-slim
28
 
29
- # Set working directory
30
  WORKDIR /app
31
 
32
- # Copy all code
33
  COPY . .
34
 
35
- # Upgrade pip and install dependencies
36
  RUN pip install --upgrade pip
37
  RUN pip install -r requirements.txt
38
- RUN pip install gradio requests # ensure gradio & requests are installed
39
 
40
- # Expose HF Space default port (HF sets $PORT automatically)
41
  EXPOSE 7860
42
 
43
- # Launch the Gradio interface (HF automatically sets PORT)
44
  CMD ["python", "app.py"]
 
 
23
 
24
 
25
 
26
+ # Use slim Python image
27
  FROM python:3.10-slim
28
 
29
+ # Set workdir
30
  WORKDIR /app
31
 
32
+ # Copy all files
33
  COPY . .
34
 
35
+ # Upgrade pip and install requirements
36
  RUN pip install --upgrade pip
37
  RUN pip install -r requirements.txt
38
+ RUN apt-get update && apt-get install -y ffmpeg libsndfile1 && rm -rf /var/lib/apt/lists/*
39
 
40
+ # Expose HF Spaces port
41
  EXPOSE 7860
42
 
43
+ # Start the app
44
  CMD ["python", "app.py"]
45
+