Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- Dockerfile +11 -9
Dockerfile
CHANGED
@@ -4,13 +4,14 @@ FROM ghcr.io/astral-sh/uv:debian-slim AS builder
|
|
4 |
ENV UV_COMPILE_BYTECODE=1 \
|
5 |
UV_LINK_MODE=copy \
|
6 |
UV_CACHE_DIR=/root/.cache/uv \
|
7 |
-
UV_PYTHON_PREFERENCE=only-managed
|
|
|
8 |
|
9 |
-
# skipcq: DOK-DL3008
|
10 |
-
RUN apt-get update && \
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
|
15 |
WORKDIR /app
|
16 |
|
@@ -33,11 +34,12 @@ FROM debian:bookworm-slim AS production
|
|
33 |
RUN groupadd vocalizr && \
|
34 |
useradd --gid vocalizr --shell /bin/bash --create-home vocalizr
|
35 |
|
36 |
-
WORKDIR /
|
37 |
|
38 |
-
COPY --from=builder --chown=
|
|
|
39 |
|
40 |
-
ENV PATH="/
|
41 |
GRADIO_SERVER_PORT=8080
|
42 |
|
43 |
USER vocalizr
|
|
|
4 |
ENV UV_COMPILE_BYTECODE=1 \
|
5 |
UV_LINK_MODE=copy \
|
6 |
UV_CACHE_DIR=/root/.cache/uv \
|
7 |
+
UV_PYTHON_PREFERENCE=only-managed \
|
8 |
+
UV_PYTHON_INSTALL_DIR=/python
|
9 |
|
10 |
+
# # skipcq: DOK-DL3008
|
11 |
+
# RUN apt-get update && \
|
12 |
+
# apt-get install -qq -y --no-install-recommends espeak-ng && \
|
13 |
+
# apt-get clean && \
|
14 |
+
# rm -rf /var/lib/apt/lists/*
|
15 |
|
16 |
WORKDIR /app
|
17 |
|
|
|
34 |
RUN groupadd vocalizr && \
|
35 |
useradd --gid vocalizr --shell /bin/bash --create-home vocalizr
|
36 |
|
37 |
+
WORKDIR /app
|
38 |
|
39 |
+
COPY --from=builder --chown=python:python /python /python
|
40 |
+
COPY --from=builder --chown=vocalizr:vocalizr /app /app
|
41 |
|
42 |
+
ENV PATH="/app/.venv/Scripts:$PATH" \
|
43 |
GRADIO_SERVER_PORT=8080
|
44 |
|
45 |
USER vocalizr
|