build(css): run Tailwind build in Docker so host bun is not required #36
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/dockerize-build-css-vapp-27"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add a pinned
bun_image(oven/bun:1.3.14-alpine) and rewritebuild-cssto runbun installand the tailwindcss build inside that image viadocker run, as the host user, so the only host requirements are Docker and git. Generatedassets/tailwind-built.cssandnode_modules/are host-owned and removable without sudo. HOME and the bun cache point at the container's ephemeral /tmp so bun stays writable under the non-root host user without polluting the working tree.The bun 1.1.x series suggested in the issue mis-handles tailwindcss's output-dir creation (EEXIST on
mkdir assets), so this pins the current working 1.3.x patch instead; the exact-pin convention fromdev_imageis preserved.Update
pre-committo depend on the dockerizedbuild-cssand drop its two host bun lines; its cargodocker runsteps are unchanged.check,dev-web,dev-desktop,build-web, andbuild-desktopalready depend onbuild-css, so they inherit the Docker path..forgejo/workflows/check.ymlis left on runner-provided bun. README updated to note bun runs in Docker locally.#VAPP-27