MH0386 commited on
Commit
167108a
·
verified ·
1 Parent(s): 7ffaa7b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -16
Dockerfile CHANGED
@@ -1,17 +1,4 @@
1
- FROM cgr.dev/chainguard/wolfi-base:latest@sha256:1fd981aa0bcefd8da87ce55a9ae907862fcb6835c658fdb284867117fb0268ce AS builder
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
- WORKDIR /home/nonroot
 
27
 
28
- COPY --from=builder --chown=nonroot:nonroot --chmod=755 /home/nonroot/.local/ /home/nonroot/.local/
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