Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +16 -8
Dockerfile
CHANGED
|
@@ -7,22 +7,30 @@ ENV PIP_NO_CACHE_DIR=true \
|
|
| 7 |
|
| 8 |
# Install system dependencies
|
| 9 |
RUN apt-get update && apt-get install -y \
|
| 10 |
-
ffmpeg \
|
| 11 |
-
libsndfile1 \
|
| 12 |
-
git \
|
| 13 |
&& apt-get clean
|
| 14 |
|
| 15 |
# Set workdir
|
| 16 |
WORKDIR /app
|
| 17 |
|
| 18 |
-
# Copy files
|
| 19 |
-
COPY requirements.txt requirements.txt
|
| 20 |
COPY app.py app.py
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
-
#
|
| 23 |
-
RUN pip install --upgrade pip
|
| 24 |
RUN pip install numpy==1.24.3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
RUN pip install -r requirements.txt
|
| 26 |
|
|
|
|
|
|
|
|
|
|
| 27 |
# Run the Streamlit app
|
| 28 |
-
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
|
|
|
|
| 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"]
|