MH0386 commited on
Commit
a8959a0
·
verified ·
1 Parent(s): 5bd1a50

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -6
Dockerfile CHANGED
@@ -3,8 +3,7 @@ FROM ghcr.io/astral-sh/uv:debian-slim
3
  # Enable bytecode compilation, Copy from the cache instead of linking since it's a mounted volume
4
  ENV UV_COMPILE_BYTECODE=1 \
5
  UV_LINK_MODE=copy \
6
- UV_CACHE_DIR=/home/nonroot/.cache/uv \
7
- UV_NO_CACHE=1
8
 
9
  RUN groupadd nonroot && \
10
  useradd -g nonroot nonroot && \
@@ -13,6 +12,8 @@ RUN groupadd nonroot && \
13
 
14
  WORKDIR /home/nonroot/app
15
 
 
 
16
  # skipcq: DOK-DL3008
17
  RUN apt-get update && \
18
  apt-get install -qq -y --no-install-recommends espeak-ng && \
@@ -29,10 +30,8 @@ RUN --mount=type=cache,target=${UV_CACHE_DIR} \
29
  COPY . /home/nonroot/app
30
 
31
  RUN --mount=type=cache,target=${UV_CACHE_DIR} \
32
- uv sync --frozen --no-dev;
33
-
34
- USER nonroot
35
 
36
  ENTRYPOINT [ ]
37
 
38
- CMD ["uv", "run", "src/vocalizr"]
 
3
  # Enable bytecode compilation, Copy from the cache instead of linking since it's a mounted volume
4
  ENV UV_COMPILE_BYTECODE=1 \
5
  UV_LINK_MODE=copy \
6
+ UV_CACHE_DIR=/home/nonroot/.cache/uv
 
7
 
8
  RUN groupadd nonroot && \
9
  useradd -g nonroot nonroot && \
 
12
 
13
  WORKDIR /home/nonroot/app
14
 
15
+ USER nonroot
16
+
17
  # skipcq: DOK-DL3008
18
  RUN apt-get update && \
19
  apt-get install -qq -y --no-install-recommends espeak-ng && \
 
30
  COPY . /home/nonroot/app
31
 
32
  RUN --mount=type=cache,target=${UV_CACHE_DIR} \
33
+ uv sync --frozen --no-dev
 
 
34
 
35
  ENTRYPOINT [ ]
36
 
37
+ CMD ["uv", "run", "src/vocalizr"]