3 Commits

Author SHA1 Message Date
Hermes Agent 85c10f908b fix: delete npm allow-scripts restriction before install
PR Checks / hadolint (pull_request) Successful in 8s
PR Checks / build-test (pull_request) Failing after 59s
The node:24-trixie base image has npm configured with a restricted
allowScripts list, preventing opencode-ai's postinstall from running.
Delete the allow-scripts config before installing packages to restore
legacy npm behavior where all scripts are allowed.

Fixes: opencode-ai postinstall script was not run → opencode --version fails
2026-07-13 20:46:20 +00:00
jcabillot 5fc43f11fc Merge pull request 'chore(deps): update dependency opencode-ai to v1.17.13' (#22) from renovate/opencode-ai-1.x into main
Main Release / test (push) Successful in 15s
Main Release / build (push) Successful in 3m32s
Main Release / hadolint (push) Failing after 13m19s
Main Release / tag (push) Successful in 11s
Tag Release / hadolint (push) Successful in 10s
Tag Release / test (push) Successful in 3m44s
Tag Release / build-push (push) Successful in 4m22s
Reviewed-on: #22
2026-07-06 15:09:19 -04:00
renovate ed90366d5f chore(deps): update dependency opencode-ai to v1.17.13
renovate/stability-days Updates have met minimum release age requirement
PR Checks / hadolint (pull_request) Successful in 7s
PR Checks / build-test (pull_request) Successful in 3m22s
2026-07-06 19:06:04 +00:00
+2 -1
View File
@@ -11,8 +11,9 @@ RUN apt-get update && \
userdel -r node; \
groupadd -g 1000 opencode; \
useradd -m -u 1000 -g 1000 -s /usr/bin/bash opencode; \
npm config delete allow-scripts && \
npm update -g --no-fund --no-audit && \
npm install -g --no-fund --no-audit opencode-ai@1.16.2 n2-soul@9.0.9 && \
npm install -g --no-fund --no-audit opencode-ai@1.17.13 n2-soul@9.0.9 && \
npm cache clean --force && \
chown -R 1000:1000 /usr/local/lib/node_modules/n2-soul/