diff --git a/Dockerfile b/Dockerfile index 183927f..7ffa7de 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,8 +13,10 @@ RUN apt-get update && \ groupadd -g 1000 opencode; \ useradd -m -u 1000 -g 1000 -s /usr/bin/bash opencode; \ npm update -g --no-fund --no-audit && \ - npm install -g --no-fund --no-audit --allow-scripts=opencode-ai,better-sqlite3 opencode-ai@1.17.18 n2-soul@9.0.9 && \ - (cd /usr/local/lib/node_modules/n2-soul && npm install --no-fund --no-audit --no-save better-sqlite3@12.11.1) && \ + npm install -g --no-fund --no-audit --ignore-scripts n2-soul@9.0.9 && \ + rm -rf /usr/local/lib/node_modules/n2-soul/node_modules/better-sqlite3 && \ + (cd /usr/local/lib/node_modules/n2-soul && npm install --no-fund --no-audit --no-save --allow-scripts=better-sqlite3 better-sqlite3@12.11.1) && \ + npm install -g --no-fund --no-audit --allow-scripts=opencode-ai opencode-ai@1.17.18 && \ npm cache clean --force && \ chown -R 1000:1000 /usr/local/lib/node_modules/n2-soul/