Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- Dockerfile +4 -6
Dockerfile
CHANGED
@@ -13,14 +13,14 @@ RUN groupadd vocalizr && \
|
|
13 |
|
14 |
# skipcq: DOK-DL3008
|
15 |
RUN apt-get update -qq && \
|
16 |
-
apt-get install -
|
17 |
apt-get clean && \
|
18 |
rm -rf /var/lib/apt/lists/*
|
19 |
|
20 |
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
|
21 |
|
22 |
-
RUN uv tool install
|
23 |
-
huggingface-cli download
|
24 |
uv tool uninstall huggingface-hub
|
25 |
|
26 |
WORKDIR /home/vocalizr/app
|
@@ -31,7 +31,7 @@ RUN --mount=type=bind,source=uv.lock,target=uv.lock \
|
|
31 |
--mount=type=bind,source=README.md,target=README.md \
|
32 |
--mount=type=bind,source=src,target=/home/vocalizr/app/src \
|
33 |
uv export --no-hashes --no-editable --no-dev --quiet -o requirements.txt && \
|
34 |
-
uv pip install --system
|
35 |
|
36 |
COPY --chown=vocalizr:vocalizr /src /home/vocalizr/app
|
37 |
|
@@ -39,6 +39,4 @@ USER vocalizr
|
|
39 |
|
40 |
EXPOSE ${GRADIO_SERVER_PORT}
|
41 |
|
42 |
-
ENTRYPOINT [ ]
|
43 |
-
|
44 |
CMD ["python", "vocalizr"]
|
|
|
13 |
|
14 |
# skipcq: DOK-DL3008
|
15 |
RUN apt-get update -qq && \
|
16 |
+
apt-get install -y --no-install-recommends espeak-ng && \
|
17 |
apt-get clean && \
|
18 |
rm -rf /var/lib/apt/lists/*
|
19 |
|
20 |
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
|
21 |
|
22 |
+
RUN uv tool install huggingface-hub[cli] && \
|
23 |
+
huggingface-cli download hexgrad/Kokoro-82M && \
|
24 |
uv tool uninstall huggingface-hub
|
25 |
|
26 |
WORKDIR /home/vocalizr/app
|
|
|
31 |
--mount=type=bind,source=README.md,target=README.md \
|
32 |
--mount=type=bind,source=src,target=/home/vocalizr/app/src \
|
33 |
uv export --no-hashes --no-editable --no-dev --quiet -o requirements.txt && \
|
34 |
+
uv pip install --system -r requirements.txt
|
35 |
|
36 |
COPY --chown=vocalizr:vocalizr /src /home/vocalizr/app
|
37 |
|
|
|
39 |
|
40 |
EXPOSE ${GRADIO_SERVER_PORT}
|
41 |
|
|
|
|
|
42 |
CMD ["python", "vocalizr"]
|