MH0386 commited on
Commit
ff048a8
·
verified ·
1 Parent(s): 5765aab

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. Dockerfile +10 -8
  2. README.md +16 -10
Dockerfile CHANGED
@@ -1,24 +1,26 @@
1
- FROM cgr.dev/chainguard/wolfi-base:latest@sha256:1fd981aa0bcefd8da87ce55a9ae907862fcb6835c658fdb284867117fb0268ce AS builder
2
 
3
- COPY --from=ghcr.io/astral-sh/uv:latest@sha256:b05b3d61eb2b264ed785265b71155738a0d3d382ea0699e048d4b36f90b88788 \
4
  /uv /uvx /usr/bin/
5
 
6
  # skipcq: DOK-DL3018
7
- RUN apk add --no-cache git build-base
8
 
9
  USER nonroot
10
 
 
 
11
  RUN --mount=type=cache,target=/root/.cache/uv \
12
- uv tool install git+https://github.com/AlphaSphereDotAI/visualizr
 
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 \
18
  PATH=/home/nonroot/.local/bin:$PATH
19
 
20
  # skipcq: DOK-DL3018
21
- RUN apk add --no-cache curl #libstdc++
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
- title: Visualizr
3
- emoji: 👁️
4
- colorFrom: gray
5
- colorTo: pink
6
- sdk: docker
7
- app_port: 7860
8
- ---
9
-
10
- ## **Visualizr**: Video Generator part of the Chatacter Backend
 
 
 
 
 
 
 
1
+ # Visualizr: Video Generator part of the Chatacter Backend
2
+
3
+ [![PyPI - Version](https://img.shields.io/pypi/v/visualizr)](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
+ ```