Spaces:
Configuration error
Configuration error
Upload folder using huggingface_hub
Browse files- Dockerfile +10 -8
- README.md +16 -10
Dockerfile
CHANGED
|
@@ -1,24 +1,26 @@
|
|
| 1 |
-
FROM cgr.dev/chainguard/wolfi-base:latest@sha256:
|
| 2 |
|
| 3 |
-
COPY --from=ghcr.io/astral-sh/uv:latest@sha256:
|
| 4 |
/uv /uvx /usr/bin/
|
| 5 |
|
| 6 |
# skipcq: DOK-DL3018
|
| 7 |
-
RUN apk add --no-cache
|
| 8 |
|
| 9 |
USER nonroot
|
| 10 |
|
|
|
|
|
|
|
| 11 |
RUN --mount=type=cache,target=/root/.cache/uv \
|
| 12 |
-
|
|
|
|
| 13 |
|
| 14 |
-
FROM cgr.dev/chainguard/wolfi-base:latest@sha256:
|
| 15 |
|
| 16 |
-
ENV
|
| 17 |
-
GRADIO_SERVER_NAME=0.0.0.0 \
|
| 18 |
PATH=/home/nonroot/.local/bin:$PATH
|
| 19 |
|
| 20 |
# skipcq: DOK-DL3018
|
| 21 |
-
RUN apk add --no-cache curl
|
| 22 |
|
| 23 |
USER nonroot
|
| 24 |
|
|
|
|
| 1 |
+
FROM cgr.dev/chainguard/wolfi-base:latest@sha256:c15643c480330cc703bc100378c97b51dbc7c6480ab335b926945f2d24ed878b AS builder
|
| 2 |
|
| 3 |
+
COPY --from=ghcr.io/astral-sh/uv:latest@sha256:f3660c56d5b08d6c516360981bedc439f499b9bf37f46a216018da3777a74011 \
|
| 4 |
/uv /uvx /usr/bin/
|
| 5 |
|
| 6 |
# skipcq: DOK-DL3018
|
| 7 |
+
RUN apk add --no-cache build-base
|
| 8 |
|
| 9 |
USER nonroot
|
| 10 |
|
| 11 |
+
SHELL ["/bin/ash", "-o", "pipefail", "-c"]
|
| 12 |
+
|
| 13 |
RUN --mount=type=cache,target=/root/.cache/uv \
|
| 14 |
+
--mount=type=bind,source=pyproject.toml,target=pyproject.toml \
|
| 15 |
+
uv tool install visualizr --python "$(grep -E 'requires-python' pyproject.toml | grep -o '[0-9]\+\.[0-9]\+')"
|
| 16 |
|
| 17 |
+
FROM cgr.dev/chainguard/wolfi-base:latest@sha256:c15643c480330cc703bc100378c97b51dbc7c6480ab335b926945f2d24ed878b AS production
|
| 18 |
|
| 19 |
+
ENV GRADIO_SERVER_NAME=0.0.0.0 \
|
|
|
|
| 20 |
PATH=/home/nonroot/.local/bin:$PATH
|
| 21 |
|
| 22 |
# skipcq: DOK-DL3018
|
| 23 |
+
RUN apk add --no-cache curl glib mesa-gl
|
| 24 |
|
| 25 |
USER nonroot
|
| 26 |
|
README.md
CHANGED
|
@@ -1,10 +1,16 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Visualizr: Video Generator part of the Chatacter Backend
|
| 2 |
+
|
| 3 |
+
[](https://pypi.org/project/visualizr)
|
| 4 |
+
|
| 5 |
+
## Installations (uv)
|
| 6 |
+
|
| 7 |
+
```bash
|
| 8 |
+
uvx --python 3.10 visualizr
|
| 9 |
+
```
|
| 10 |
+
|
| 11 |
+
## Installations (docker)
|
| 12 |
+
|
| 13 |
+
```bash
|
| 14 |
+
curl -o compose.yaml https://raw.githubusercontent.com/alphaspheredotai/visualizr/main/compose.yaml
|
| 15 |
+
docker compose up
|
| 16 |
+
```
|