Mike0021 commited on
Commit
1ab4ed9
·
verified ·
1 Parent(s): fe4147a

Build Pi Web 0.12.1 with the Pi Web on Hugging Face design (piweb/hf-design.patch)

Browse files
Files changed (3) hide show
  1. Dockerfile +13 -2
  2. README.md +3 -1
  3. piweb/hf-design.patch +0 -0
Dockerfile CHANGED
@@ -30,9 +30,20 @@ RUN chmod 755 /usr/local/bin/git-credential-huggingface \
30
  && git config --system credential.https://huggingface.co.helper /usr/local/bin/git-credential-huggingface \
31
  && git config --system credential.https://hf.co.helper /usr/local/bin/git-credential-huggingface
32
 
33
- # Pi Web, unmodified, from its npm release (prebuilt Next.js app + pi SDK).
 
 
 
34
  ARG PI_WEB_VERSION=0.12.1
35
- RUN npm install -g --no-audit --no-fund "@agegr/pi-web@${PI_WEB_VERSION}" && npm cache clean --force
 
 
 
 
 
 
 
 
36
 
37
  COPY sandbox /opt/hfpi
38
  COPY www /opt/hfpi/www
 
30
  && git config --system credential.https://huggingface.co.helper /usr/local/bin/git-credential-huggingface \
31
  && git config --system credential.https://hf.co.helper /usr/local/bin/git-credential-huggingface
32
 
33
+ # Pi Web 0.12.1 with the "Pi Web on Hugging Face" design (piweb/hf-design.patch: Geist type,
34
+ # the pi mark, borderless components, a sidebar slot for the gateway's workspace menu), built
35
+ # from its release tag and installed as its npm package would be. The patch is the diff of
36
+ # the hf-design branch in the project's pi-web-hf/ worktree; nothing else is changed.
37
  ARG PI_WEB_VERSION=0.12.1
38
+ COPY piweb /tmp/piweb
39
+ RUN git clone --quiet --depth 1 --branch "v${PI_WEB_VERSION}" https://github.com/agegr/pi-web /tmp/pi-web \
40
+ && cd /tmp/pi-web \
41
+ && git apply --binary /tmp/piweb/hf-design.patch \
42
+ && PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 NEXT_TELEMETRY_DISABLED=1 npm ci --no-audit --no-fund \
43
+ && NEXT_TELEMETRY_DISABLED=1 npm run build \
44
+ && npm pack --silent \
45
+ && npm install -g --no-audit --no-fund "./agegr-pi-web-${PI_WEB_VERSION}.tgz" \
46
+ && cd / && rm -rf /tmp/pi-web /tmp/piweb && npm cache clean --force
47
 
48
  COPY sandbox /opt/hfpi
49
  COPY www /opt/hfpi/www
README.md CHANGED
@@ -18,7 +18,9 @@ it. It contains no secret.
18
 
19
  What is inside:
20
 
21
- - [Pi Web](https://github.com/agegr/pi-web) 0.12.1 (unmodified npm release) and the pi coding agent
 
 
22
  - Node 22, Python 3, uv, git, git-lfs, build tools, ripgrep, fd, jq, zstd
23
  - the `hf` CLI (`huggingface_hub` 2.1.1) and the Hugging Face agent skills in `~/.agents/skills`
24
  - `sandbox/hfpi.mjs`: the supervisor that restores the user's projects and sessions from their bucket, runs Pi Web,
 
18
 
19
  What is inside:
20
 
21
+ - [Pi Web](https://github.com/agegr/pi-web) 0.12.1 and the pi coding agent, built from the release tag with
22
+ `piweb/hf-design.patch`: the "Pi Web on Hugging Face" design (Geist and Geist Mono, the pi mark, borderless
23
+ components, quieter session rows) and a slot in the sidebar footer for the gateway's workspace menu
24
  - Node 22, Python 3, uv, git, git-lfs, build tools, ripgrep, fd, jq, zstd
25
  - the `hf` CLI (`huggingface_hub` 2.1.1) and the Hugging Face agent skills in `~/.agents/skills`
26
  - `sandbox/hfpi.mjs`: the supervisor that restores the user's projects and sessions from their bucket, runs Pi Web,
piweb/hf-design.patch ADDED
The diff for this file is too large to render. See raw diff