Spaces:
Sleeping
Sleeping
Build Pi Web with 4 Next workers (15 were OOM-killed on the builder)
Browse files34 unmodified lines3536373839404142434445464734 unmodified lines# a sidebar slot for the gateway's workspace menu), built# from its release tag and installed as its npm package would be. The patch is the diff of# the hf-design branch in the project's pi-web-hf/ worktree; nothing else is changed.ARG PI_WEB_VERSION=0.12.1COPY piweb /tmp/piwebRUN git clone --quiet --depth 1 --branch "v${PI_WEB_VERSION}" https://github.com/agegr/pi-web /tmp/pi-web \&& cd /tmp/pi-web \&& git apply --binary /tmp/piweb/hf-design.patch \&& PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 NEXT_TELEMETRY_DISABLED=1 npm ci --no-audit --no-fund \&& NEXT_TELEMETRY_DISABLED=1 npm run build \&& npm pack --silent \&& npm install -g --no-audit --no-fund "./agegr-pi-web-${PI_WEB_VERSION}.tgz" \&& cd / && rm -rf /tmp/pi-web /tmp/piweb && npm cache clean --force34 unmodified lines3536373839404142434445464748495034 unmodified lines# a sidebar slot for the gateway's workspace menu), built# from its release tag and installed as its npm package would be. The patch is the diff of# the hf-design branch in the project's pi-web-hf/ worktree; nothing else is changed.# Next runs one build worker per CPU but one (CIRCLE_NODE_TOTAL stands in for the CPU count): on# the Space builder's 16 CPUs, 15 workers ran out of memory collecting page data (OOMKilled), so# it builds with 4.ARG PI_WEB_VERSION=0.12.1COPY piweb /tmp/piwebRUN git clone --quiet --depth 1 --branch "v${PI_WEB_VERSION}" https://github.com/agegr/pi-web /tmp/pi-web \&& cd /tmp/pi-web \&& git apply --binary /tmp/piweb/hf-design.patch \&& PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 NEXT_TELEMETRY_DISABLED=1 npm ci --no-audit --no-fund \&& NEXT_TELEMETRY_DISABLED=1 CIRCLE_NODE_TOTAL=5 npm run build \&& npm pack --silent \&& npm install -g --no-audit --no-fund "./agegr-pi-web-${PI_WEB_VERSION}.tgz" \&& cd / && rm -rf /tmp/pi-web /tmp/piweb && npm cache clean --force
Dockerfile+4-1