Nishur commited on
Commit
777be89
·
verified ·
1 Parent(s): cddf7ba

Rename dockerfile to Dockerfile

Browse files
Files changed (1) hide show
  1. dockerfile → Dockerfile +8 -8
dockerfile → Dockerfile RENAMED
@@ -1,7 +1,7 @@
1
- # Use official Python image as base
2
  FROM python:3.10-slim
3
 
4
- # Install system dependencies
5
  RUN apt-get update && apt-get install -y \
6
  espeak \
7
  ffmpeg \
@@ -17,21 +17,21 @@ COPY requirements.txt .
17
  # Install Python dependencies
18
  RUN pip install --no-cache-dir -r requirements.txt
19
 
20
- # Download whisper model during build
21
- RUN python -c "import whisper; whisper.load_model('small')"
22
 
23
- # Copy the rest of the application
24
  COPY . .
25
 
26
  # Environment variables
27
  ENV PYTHONUNBUFFERED=1
28
  ENV OUTPUT_DIR=/app/outputs
29
 
30
- # Create outputs directory
31
  RUN mkdir -p ${OUTPUT_DIR}
32
 
33
- # Expose port for Gradio
34
  EXPOSE 7860
35
 
36
- # Command to run the application
37
  CMD ["python", "app.py"]
 
1
+ # Use official Python image
2
  FROM python:3.10-slim
3
 
4
+ # Install system dependencies (including espeak)
5
  RUN apt-get update && apt-get install -y \
6
  espeak \
7
  ffmpeg \
 
17
  # Install Python dependencies
18
  RUN pip install --no-cache-dir -r requirements.txt
19
 
20
+ # Pre-download whisper model
21
+ RUN python -c "import whisper; whisper.load_model('base')"
22
 
23
+ # Copy application code
24
  COPY . .
25
 
26
  # Environment variables
27
  ENV PYTHONUNBUFFERED=1
28
  ENV OUTPUT_DIR=/app/outputs
29
 
30
+ # Create output directory
31
  RUN mkdir -p ${OUTPUT_DIR}
32
 
33
+ # Expose Gradio port
34
  EXPOSE 7860
35
 
36
+ # Run the application
37
  CMD ["python", "app.py"]