Spaces:
Paused
Paused
Pi Web: upstream e533d9b, Conversations header (Group by, Show archived), sidebar search field and New row, small switches, Models cube (fork 100d72b)
Browse files- Dockerfile +12 -8
- piweb/hf-design.patch +0 -0
Dockerfile
CHANGED
|
@@ -45,20 +45,24 @@ RUN chmod 755 /usr/local/bin/git-credential-huggingface \
|
|
| 45 |
&& git config --system credential.https://huggingface.co.helper /usr/local/bin/git-credential-huggingface \
|
| 46 |
&& git config --system credential.https://hf.co.helper /usr/local/bin/git-credential-huggingface
|
| 47 |
|
| 48 |
-
# Pi Web 0.12.
|
| 49 |
-
# Desktop's layout on Base UI: the composer with its
|
| 50 |
-
# the header's panes: Changes with review comments,
|
| 51 |
-
#
|
| 52 |
-
#
|
| 53 |
-
#
|
| 54 |
-
# the hf-design branch in the project's pi-web-hf/ worktree
|
|
|
|
| 55 |
# Next runs one build worker per CPU but one (CIRCLE_NODE_TOTAL stands in for the CPU count): on
|
| 56 |
# the Space builder's 16 CPUs, 15 workers ran out of memory collecting page data (OOMKilled), so
|
| 57 |
# it builds with 4.
|
| 58 |
ARG PI_WEB_VERSION=0.12.2
|
|
|
|
| 59 |
COPY piweb /tmp/piweb
|
| 60 |
-
RUN git
|
| 61 |
&& cd /tmp/pi-web \
|
|
|
|
|
|
|
| 62 |
&& git apply --binary /tmp/piweb/hf-design.patch \
|
| 63 |
&& PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 NEXT_TELEMETRY_DISABLED=1 npm ci --no-audit --no-fund \
|
| 64 |
&& NEXT_TELEMETRY_DISABLED=1 CIRCLE_NODE_TOTAL=5 npm run build \
|
|
|
|
| 45 |
&& git config --system credential.https://huggingface.co.helper /usr/local/bin/git-credential-huggingface \
|
| 46 |
&& git config --system credential.https://hf.co.helper /usr/local/bin/git-credential-huggingface
|
| 47 |
|
| 48 |
+
# Pi Web (upstream main at PI_WEB_COMMIT, past its 0.12.2 tag) with the "Pi Web on Hugging Face"
|
| 49 |
+
# design (piweb/hf-design.patch: Claude Code Desktop's layout on Base UI: the composer with its
|
| 50 |
+
# "/" and "@" lists, modes and context meter; the header's panes: Changes with review comments,
|
| 51 |
+
# the machine's Browser (the agent also acts in the user's direct preview), Files, Terminal; the
|
| 52 |
+
# Hugging Face connector; Geist type, the pi mark, Lucide icons, a sidebar slot for the gateway's
|
| 53 |
+
# workspace menu), built from that commit and installed as its npm package would be. The patch is
|
| 54 |
+
# the diff of the hf-design branch in the project's pi-web-hf/ worktree against that commit
|
| 55 |
+
# (git diff --binary <PI_WEB_COMMIT> hf-design); nothing else is changed.
|
| 56 |
# Next runs one build worker per CPU but one (CIRCLE_NODE_TOTAL stands in for the CPU count): on
|
| 57 |
# the Space builder's 16 CPUs, 15 workers ran out of memory collecting page data (OOMKilled), so
|
| 58 |
# it builds with 4.
|
| 59 |
ARG PI_WEB_VERSION=0.12.2
|
| 60 |
+
ARG PI_WEB_COMMIT=e533d9b3975f8a74b378d5007c92fdf4d15d3fba
|
| 61 |
COPY piweb /tmp/piweb
|
| 62 |
+
RUN git init --quiet /tmp/pi-web \
|
| 63 |
&& cd /tmp/pi-web \
|
| 64 |
+
&& git fetch --quiet --depth 1 https://github.com/agegr/pi-web "${PI_WEB_COMMIT}" \
|
| 65 |
+
&& git checkout --quiet FETCH_HEAD \
|
| 66 |
&& git apply --binary /tmp/piweb/hf-design.patch \
|
| 67 |
&& PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 NEXT_TELEMETRY_DISABLED=1 npm ci --no-audit --no-fund \
|
| 68 |
&& NEXT_TELEMETRY_DISABLED=1 CIRCLE_NODE_TOTAL=5 npm run build \
|
piweb/hf-design.patch
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|