Spaces:
Running
Running
Enforce global npm install to prefix /usr/local with --force and allow-scripts
Browse files- 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
|
| 200 |
-
npm
|
| 201 |
-
npm install -g
|
| 202 |
-
|
| 203 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 && \
|