github-actions[bot] commited on
Commit ·
bee14d9
1
Parent(s): b370760
Automated Deploy: 7344b55d7b0330c998973f08636713238ebb58a5
Browse files- Dockerfile +5 -0
Dockerfile
CHANGED
|
@@ -29,6 +29,11 @@ COPY backend/model_services/requirements-lightweight.txt backend/model_services/
|
|
| 29 |
# this off PyPI's CUDA build now that PyPI is reachable again.
|
| 30 |
RUN pip install --no-cache-dir torch==2.6.0+cpu --extra-index-url https://download.pytorch.org/whl/cpu \
|
| 31 |
&& pip install --no-cache-dir -r backend/requirements.txt -r backend/model_services/requirements-lightweight.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
RUN useradd -m -u 1000 studio
|
| 33 |
COPY --chown=studio:studio backend backend
|
| 34 |
COPY --chown=studio:studio scripts scripts
|
|
|
|
| 29 |
# this off PyPI's CUDA build now that PyPI is reachable again.
|
| 30 |
RUN pip install --no-cache-dir torch==2.6.0+cpu --extra-index-url https://download.pytorch.org/whl/cpu \
|
| 31 |
&& pip install --no-cache-dir -r backend/requirements.txt -r backend/model_services/requirements-lightweight.txt
|
| 32 |
+
# misaki (Kokoro's G2P) needs this spaCy model. Left alone it installs itself on
|
| 33 |
+
# first use, but by then the process runs as studio, so it lands in the user site
|
| 34 |
+
# directory that was absent at interpreter start and is therefore not importable.
|
| 35 |
+
RUN pip install --no-cache-dir \
|
| 36 |
+
https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.8.0/en_core_web_sm-3.8.0-py3-none-any.whl
|
| 37 |
RUN useradd -m -u 1000 studio
|
| 38 |
COPY --chown=studio:studio backend backend
|
| 39 |
COPY --chown=studio:studio scripts scripts
|