1 Commits

Author SHA1 Message Date
Hermes Agent 1722e0bfad fix: run opencode-ai postinstall script after npm install
PR Checks / hadolint (pull_request) Failing after 8s
PR Checks / build-test (pull_request) Successful in 2m12s
The node base image has npm configured with ignore-scripts or the new
opencode-ai versions require explicit postinstall execution. Running
the postinstall manually after npm install ensures opencode --version
works regardless of npm configuration.
2026-07-13 20:26:33 +00:00
+2 -1
View File
@@ -12,7 +12,8 @@ RUN apt-get update && \
groupadd -g 1000 opencode; \ groupadd -g 1000 opencode; \
useradd -m -u 1000 -g 1000 -s /usr/bin/bash opencode; \ useradd -m -u 1000 -g 1000 -s /usr/bin/bash opencode; \
npm update -g --no-fund --no-audit && \ npm update -g --no-fund --no-audit && \
npm install -g --no-fund --no-audit --ignore-scripts=false opencode-ai@1.17.13 n2-soul@9.0.9 && \ npm install -g --no-fund --no-audit opencode-ai@1.17.13 n2-soul@9.0.9 && \
cd /usr/local/lib/node_modules/opencode-ai && node postinstall.mjs && \
npm cache clean --force && \ npm cache clean --force && \
chown -R 1000:1000 /usr/local/lib/node_modules/n2-soul/ chown -R 1000:1000 /usr/local/lib/node_modules/n2-soul/