Dockerfile: fix vite+ installer failing in the ui build stage (#32406)

This commit is contained in:
GurliGebis 2026-08-01 15:52:01 +02:00 • committed by GitHub
parent 53d13548f5
commit 44d910776f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,7 +1,10 @@
# STEP 1 build ui
FROM --platform=$BUILDPLATFORM node:26-alpine AS node
RUN apk update && apk add --no-cache make && curl -fsSL https://vite.plus | bash
RUN apk update && apk add --no-cache make curl bash && curl -fsSL https://vite.plus | bash
# the installer only wires vp into interactive shell rc files, which RUN steps don't source
ENV PATH="/root/.vite-plus/bin:${PATH}"
WORKDIR /build