Andrey Antukh 016c3976d0 🔧 Install opencode on demand instead of baking it in
The opencode build stage was already commented out, so the image carried
a dead block and a commented COPY. Drop both: opencode now comes from
scripts/setup-opencode, which installs @opencode/cli as a global pnpm
package in the penpot user's $PNPM_HOME. That dir sits in the user-data
volume, so the install survives a container re-creation and needs no
root.

pnpm 12 keeps the global binaries in $PNPM_HOME/bin, so put that dir on
PATH in the bashrc (and make the guard check the same path) instead of
$PNPM_HOME, which left the commands unreachable.

The entrypoint now also chowns ~/.local, ~/.cache and the dotfiles it
copies from /root. EXTERNAL_UID remaps penpot to the host UID on every
start, so the ownership the image set at build time stops matching; that
broke global pnpm installs and pnpm's own packageManager download.

AI-assisted-by: deepseek-v4.1-flash
2026-10-17 14:00:43 +02:00
..
2026-06-05 11:44:20 +02:00
2025-12-02 13:27:09 +01:00
2021-11-15 09:54:36 -05:00
2026-09-24 13:39:47 +02:00
2020-02-25 16:24:40 +01:00
2026-05-27 11:35:21 +02:00
2026-06-05 11:44:20 +02:00
2026-06-05 11:44:20 +02:00
2021-03-25 09:05:32 +01:00
2026-06-05 11:44:20 +02:00