Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +4 -5
Dockerfile
CHANGED
|
@@ -4,7 +4,7 @@ FROM python:3.9-slim
|
|
| 4 |
RUN apt-get update && apt-get install -y \
|
| 5 |
espeak-ng \
|
| 6 |
libsndfile1 \
|
| 7 |
-
git
|
| 8 |
|
| 9 |
# 2. Configure environment
|
| 10 |
ENV HF_HOME=/app/cache \
|
|
@@ -14,7 +14,6 @@ ENV HF_HOME=/app/cache \
|
|
| 14 |
# 3. Create directories with proper permissions
|
| 15 |
RUN mkdir -p /app/cache && \
|
| 16 |
chmod -R 777 /app
|
| 17 |
-
|
| 18 |
WORKDIR /app
|
| 19 |
|
| 20 |
# 4. Install Python dependencies
|
|
@@ -23,12 +22,12 @@ COPY requirements.txt .
|
|
| 23 |
# First install setup tools
|
| 24 |
RUN pip install --upgrade pip setuptools wheel
|
| 25 |
|
| 26 |
-
# Install misaki with proper data files
|
| 27 |
-
# RUN pip install "misaki[ja,zh] @ git+https://github.com/uezo/misaki.git"
|
| 28 |
-
|
| 29 |
# Then install other requirements
|
| 30 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 31 |
|
|
|
|
|
|
|
|
|
|
| 32 |
# 5. Copy application code
|
| 33 |
COPY . .
|
| 34 |
|
|
|
|
| 4 |
RUN apt-get update && apt-get install -y \
|
| 5 |
espeak-ng \
|
| 6 |
libsndfile1 \
|
| 7 |
+
git
|
| 8 |
|
| 9 |
# 2. Configure environment
|
| 10 |
ENV HF_HOME=/app/cache \
|
|
|
|
| 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
|
|
|
|
| 22 |
# First install setup tools
|
| 23 |
RUN pip install --upgrade pip setuptools wheel
|
| 24 |
|
|
|
|
|
|
|
|
|
|
| 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 . .
|
| 33 |
|