khurrameycon commited on
Commit
aa8694c
·
verified ·
1 Parent(s): 90eb14c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -12,8 +12,10 @@ ENV HF_HOME=/app/cache \
12
  PYTHONPATH="${PYTHONPATH}:/app"
13
 
14
  # 3. Create directories with proper permissions
15
- RUN mkdir -p /app/cache && \
 
16
  chmod -R 777 /app
 
17
  WORKDIR /app
18
 
19
  # 4. Install Python dependencies
@@ -25,8 +27,8 @@ RUN pip install --upgrade pip setuptools wheel
25
  # Then install other requirements
26
  RUN pip install --no-cache-dir -r requirements.txt
27
 
28
- # Install spaCy model
29
- RUN python -m spacy download en_core_web_sm
30
 
31
  # 5. Copy application code
32
  COPY . .
 
12
  PYTHONPATH="${PYTHONPATH}:/app"
13
 
14
  # 3. Create directories with proper permissions
15
+ RUN mkdir -p /app/cache/hub && \
16
+ mkdir -p /app/cache/hub/models--hexgrad--Kokoro-82M && \
17
  chmod -R 777 /app
18
+
19
  WORKDIR /app
20
 
21
  # 4. Install Python dependencies
 
27
  # Then install other requirements
28
  RUN pip install --no-cache-dir -r requirements.txt
29
 
30
+ # Pre-download the model
31
+ RUN python -c "from huggingface_hub import hf_hub_download; hf_hub_download('hexgrad/Kokoro-82M', 'config.json')"
32
 
33
  # 5. Copy application code
34
  COPY . .