MH0386 commited on
Commit
a96ed68
·
verified ·
1 Parent(s): eb446cb

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -12,12 +12,12 @@ WORKDIR /app
12
  RUN --mount=type=cache,target=/root/.cache/uv \
13
  --mount=type=bind,source=uv.lock,target=uv.lock \
14
  --mount=type=bind,source=pyproject.toml,target=pyproject.toml \
15
- uv sync --locked --no-install-project --no-dev
16
 
17
  COPY . /app
18
 
19
  RUN --mount=type=cache,target=/root/.cache/uv \
20
- uv sync --locked --no-dev
21
 
22
  RUN uv tool install --quiet huggingface_hub[cli] && \
23
  huggingface-cli download --quiet hexgrad/Kokoro-82M && \
@@ -26,7 +26,8 @@ RUN uv tool install --quiet huggingface_hub[cli] && \
26
  FROM python:3.12-alpine AS production
27
 
28
  ENV GRADIO_SERVER_PORT=7860 \
29
- GRADIO_SERVER_NAME=0.0.0.0
 
30
 
31
  # skipcq: DOK-DL3008
32
  RUN addgroup vocalizr && \
 
12
  RUN --mount=type=cache,target=/root/.cache/uv \
13
  --mount=type=bind,source=uv.lock,target=uv.lock \
14
  --mount=type=bind,source=pyproject.toml,target=pyproject.toml \
15
+ uv sync --no-install-project --no-dev
16
 
17
  COPY . /app
18
 
19
  RUN --mount=type=cache,target=/root/.cache/uv \
20
+ uv sync --no-dev
21
 
22
  RUN uv tool install --quiet huggingface_hub[cli] && \
23
  huggingface-cli download --quiet hexgrad/Kokoro-82M && \
 
26
  FROM python:3.12-alpine AS production
27
 
28
  ENV GRADIO_SERVER_PORT=7860 \
29
+ GRADIO_SERVER_NAME=0.0.0.0 \
30
+ PATH="/app/.venv/bin:$PATH"
31
 
32
  # skipcq: DOK-DL3008
33
  RUN addgroup vocalizr && \