Create Dockerfile
Browse files- Dockerfile +31 -0
Dockerfile
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.9-slim
|
2 |
+
|
3 |
+
WORKDIR /app
|
4 |
+
|
5 |
+
# Install system dependencies
|
6 |
+
RUN apt-get update && apt-get install -y \
|
7 |
+
git \
|
8 |
+
wget \
|
9 |
+
&& rm -rf /var/lib/apt/lists/*
|
10 |
+
|
11 |
+
# Copy requirements file
|
12 |
+
COPY requirements.txt .
|
13 |
+
|
14 |
+
# Install Python dependencies
|
15 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
16 |
+
|
17 |
+
# Copy application code
|
18 |
+
COPY . .
|
19 |
+
|
20 |
+
# Clone the YarnGPT repository
|
21 |
+
RUN git clone https://github.com/saheedniyi02/yarngpt.git
|
22 |
+
|
23 |
+
# Download model files
|
24 |
+
RUN wget -nc https://huggingface.co/novateur/WavTokenizer-medium-speech-75token/resolve/main/wavtokenizer_mediumdata_frame75_3s_nq1_code4096_dim512_kmeans200_attn.yaml
|
25 |
+
RUN wget -nc https://huggingface.co/novateur/WavTokenizer-large-speech-75token/resolve/main/wavtokenizer_large_speech_320_24k.ckpt
|
26 |
+
|
27 |
+
# Make the Python path include the local yarngpt directory
|
28 |
+
ENV PYTHONPATH="/app:${PYTHONPATH}"
|
29 |
+
|
30 |
+
# Start the application
|
31 |
+
CMD ["python", "app.py"]
|