Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
@@ -3,7 +3,8 @@ 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 |
|
8 |
RUN groupadd nonroot && \
|
9 |
useradd -g nonroot nonroot && \
|
@@ -32,4 +33,6 @@ RUN --mount=type=cache,target=${UV_CACHE_DIR} \
|
|
32 |
|
33 |
USER nonroot
|
34 |
|
|
|
|
|
35 |
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 |
+
UV_NO_CACHE=1
|
8 |
|
9 |
RUN groupadd nonroot && \
|
10 |
useradd -g nonroot nonroot && \
|
|
|
33 |
|
34 |
USER nonroot
|
35 |
|
36 |
+
ENTRYPOINT [ ]
|
37 |
+
|
38 |
CMD ["uv", "run", "src/vocalizr"]
|