Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +4 -16
Dockerfile
CHANGED
@@ -1,17 +1,4 @@
|
|
1 |
-
FROM cgr.dev/chainguard/wolfi-base:latest@sha256:1fd981aa0bcefd8da87ce55a9ae907862fcb6835c658fdb284867117fb0268ce
|
2 |
-
|
3 |
-
COPY --from=ghcr.io/astral-sh/uv:latest@sha256:8101ad825250a114e7bef89eefaa73c31e34e10ffbe5aff01562740bac97553c \
|
4 |
-
/uv /uvx /usr/bin/
|
5 |
-
|
6 |
-
# skipcq: DOK-DL3018
|
7 |
-
RUN apk add --no-cache build-base git
|
8 |
-
|
9 |
-
USER nonroot
|
10 |
-
|
11 |
-
RUN --mount=type=cache,target=/root/.cache/uv \
|
12 |
-
uv tool install git+https://github.com/AlphaSphereDotAI/vocalizr
|
13 |
-
|
14 |
-
FROM cgr.dev/chainguard/wolfi-base:latest@sha256:1fd981aa0bcefd8da87ce55a9ae907862fcb6835c658fdb284867117fb0268ce AS production
|
15 |
|
16 |
ENV GRADIO_SERVER_PORT=7860 \
|
17 |
GRADIO_SERVER_NAME=0.0.0.0 \
|
@@ -23,9 +10,10 @@ RUN apk add --no-cache curl libstdc++
|
|
23 |
|
24 |
USER nonroot
|
25 |
|
26 |
-
|
|
|
27 |
|
28 |
-
|
29 |
|
30 |
EXPOSE ${GRADIO_SERVER_PORT}
|
31 |
|
|
|
1 |
+
FROM cgr.dev/chainguard/wolfi-base:latest@sha256:1fd981aa0bcefd8da87ce55a9ae907862fcb6835c658fdb284867117fb0268ce
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
ENV GRADIO_SERVER_PORT=7860 \
|
4 |
GRADIO_SERVER_NAME=0.0.0.0 \
|
|
|
10 |
|
11 |
USER nonroot
|
12 |
|
13 |
+
RUN --mount=from=ghcr.io/astral-sh/uv,source=/uv,target=/bin/uv \
|
14 |
+
uv tool install vocalizr
|
15 |
|
16 |
+
WORKDIR /home/nonroot
|
17 |
|
18 |
EXPOSE ${GRADIO_SERVER_PORT}
|
19 |
|