amangs commited on
Commit
4ca1ca9
·
1 Parent(s): 7a6201e

Enforce global npm install to prefix /usr/local with --force and allow-scripts

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -5
Dockerfile CHANGED
@@ -196,11 +196,20 @@ RUN curl -fsSL "https://github.com/oven-sh/bun/releases/latest/download/bun-linu
196
  # ------------------------------------------
197
  COPY security/stub-playwright-index.js /tmp/stub-pw.js
198
  COPY security/stub-playwright-index.mjs /tmp/stub-pw.mjs
199
- RUN npm config set allow-scripts true && \
200
- npm install -g pnpm yarn typescript supergateway@4.1.0 rea-agents@latest hermes-web-ui@0.7.34 && \
201
- npm install -g opencode-ai@latest && \
202
- npm install -g @anthropic-ai/claude-code@latest && \
203
- npm install -g @deepseek-ai/dsh@latest && \
 
 
 
 
 
 
 
 
 
204
  chmod +x /usr/local/bin/* 2>/dev/null || true && \
205
  ln -sf /usr/local/bin/dsh /usr/local/bin/deepseek-harness 2>/dev/null || true && \
206
  cp /tmp/stub-pw.js /usr/local/lib/node_modules/rea-agents/node_modules/playwright-core/index.js 2>/dev/null || true && \
 
196
  # ------------------------------------------
197
  COPY security/stub-playwright-index.js /tmp/stub-pw.js
198
  COPY security/stub-playwright-index.mjs /tmp/stub-pw.mjs
199
+ RUN npm config set ignore-scripts false && \
200
+ npm config set allow-scripts true && \
201
+ npm install -g \
202
+ pnpm \
203
+ yarn \
204
+ typescript \
205
+ supergateway@4.1.0 \
206
+ rea-agents@latest \
207
+ hermes-web-ui@0.7.34 \
208
+ opencode-ai@latest \
209
+ @anthropic-ai/claude-code@latest \
210
+ @deepseek-ai/dsh@latest \
211
+ --prefix /usr/local \
212
+ --force && \
213
  chmod +x /usr/local/bin/* 2>/dev/null || true && \
214
  ln -sf /usr/local/bin/dsh /usr/local/bin/deepseek-harness 2>/dev/null || true && \
215
  cp /tmp/stub-pw.js /usr/local/lib/node_modules/rea-agents/node_modules/playwright-core/index.js 2>/dev/null || true && \