Skip to content

Commit 20fd5df

Browse files
committed
update Dockerfile
1 parent 7d57b33 commit 20fd5df

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

Dockerfile

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,21 @@ RUN apt-get update && apt-get install -y \
1010
ffmpeg \
1111
libsndfile1 \
1212
git \
13+
espeak-ng \
1314
&& rm -rf /var/lib/apt/lists/*
1415

1516
# Install Python dependencies
1617
COPY requirements.txt .
1718
RUN pip3 install --no-cache-dir -r requirements.txt
1819

19-
# Clone the zonos repository and install it
20-
RUN git clone https://github.com/Zyphra/Zonos.git /app/zonos && \
21-
pip3 install /app/zonos
20+
# Clone the zonos repository and update submodules
21+
RUN git clone https://github.com/Zyphra/Zonos.git /app/zonos \
22+
&& cd /app/zonos \
23+
&& git submodule update --init --recursive \
24+
&& cd ..
25+
26+
# Install Zonos in editable mode
27+
RUN pip3 install -e /app/zonos
2228

2329
# Install specific wheel files with GPU support
2430
RUN FLASH_ATTENTION_SKIP_CUDA_BUILD=TRUE pip3 install flash-attn --no-build-isolation \
@@ -30,7 +36,7 @@ COPY app/ app/
3036
COPY pyproject.toml .
3137

3238
# Environment variables
33-
ENV PYTHONPATH=/app
39+
ENV PYTHONPATH=/app:/app/zonos
3440
ENV USE_GPU=true
3541

3642
# Run the application

0 commit comments

Comments
 (0)