ZeeAI1 commited on
Commit
e239009
·
verified ·
1 Parent(s): 8ba7f4a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -36
Dockerfile CHANGED
@@ -1,36 +1,2 @@
1
- FROM python:3.10-slim
2
-
3
- # Set environment variables
4
- ENV PIP_NO_CACHE_DIR=true \
5
- PYTHONDONTWRITEBYTECODE=1 \
6
- PYTHONUNBUFFERED=1
7
-
8
- # Install system dependencies
9
- RUN apt-get update && apt-get install -y \
10
- git ffmpeg libsndfile1 build-essential python3-dev libffi-dev wget curl \
11
- && apt-get clean
12
-
13
- # Set workdir
14
- WORKDIR /app
15
-
16
- # Copy project files
17
- COPY app.py app.py
18
- COPY requirements.txt requirements.txt
19
-
20
- # Install Python build tools first
21
- RUN pip install --upgrade pip setuptools wheel
22
-
23
- # Fix numpy for numba compatibility
24
- RUN pip install numpy==1.24.3
25
-
26
- # Install whisper manually from GitHub
27
- RUN pip install git+https://github.com/openai/whisper.git
28
-
29
- # Install torchaudio, moviepy, etc.
30
- RUN pip install -r requirements.txt
31
-
32
- # Install Coqui TTS manually
33
- RUN pip install git+https://github.com/coqui-ai/TTS.git
34
-
35
- # Run the Streamlit app
36
- CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
 
1
+ # Disable numba caching to avoid function locator issues in Hugging Face
2
+ ENV NUMBA_DISABLE_CACHE=1