MH0386 commited on
Commit
a69d461
·
verified ·
1 Parent(s): 69a8a21

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -16
Dockerfile CHANGED
@@ -1,31 +1,22 @@
1
- FROM cgr.dev/chainguard/wolfi-base:latest@sha256:00e7fc48700a2ed524e075a78adaf1a278050f9b711bb789e8d3fc50ece6c57a AS builder
2
-
3
- COPY --from=ghcr.io/astral-sh/uv:latest@sha256:40775a79214294fb51d097c9117592f193bcfdfc634f4daa0e169ee965b10ef0 \
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:00e7fc48700a2ed524e075a78adaf1a278050f9b711bb789e8d3fc50ece6c57a AS production
15
 
16
  ENV GRADIO_SERVER_PORT=7860 \
17
  GRADIO_SERVER_NAME=0.0.0.0 \
18
  HF_HOME=/home/nonroot/hf \
19
  PATH=/home/nonroot/.local/bin:$PATH
20
 
 
 
 
21
  # skipcq: DOK-DL3018
22
  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:00e7fc48700a2ed524e075a78adaf1a278050f9b711bb789e8d3fc50ece6c57a
 
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
  ENV GRADIO_SERVER_PORT=7860 \
4
  GRADIO_SERVER_NAME=0.0.0.0 \
5
  HF_HOME=/home/nonroot/hf \
6
  PATH=/home/nonroot/.local/bin:$PATH
7
 
8
+ COPY --from=ghcr.io/astral-sh/uv:latest@sha256:40775a79214294fb51d097c9117592f193bcfdfc634f4daa0e169ee965b10ef0 \
9
+ /uv /uvx /usr/bin/
10
+
11
  # skipcq: DOK-DL3018
12
  RUN apk add --no-cache curl libstdc++
13
 
14
  USER nonroot
15
 
16
+ RUN --mount=type=cache,target=/root/.cache/uv \
17
+ uv tool install vocalizr
18
 
19
+ WORKDIR /home/nonroot
20
 
21
  EXPOSE ${GRADIO_SERVER_PORT}
22