amangs commited on
Commit
02acdde
·
1 Parent(s): 81b14ce

Symlink supergateway and rea to /usr/local/bin to guarantee execution

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -0
Dockerfile CHANGED
@@ -195,6 +195,8 @@ RUN curl -fsSL "https://github.com/oven-sh/bun/releases/latest/download/bun-linu
195
  COPY security/stub-playwright-index.js /tmp/stub-pw.js
196
  COPY security/stub-playwright-index.mjs /tmp/stub-pw.mjs
197
  RUN npm install -g supergateway@latest rea-agents@latest opencode-ai @deepseek-ai/dsh pnpm yarn typescript && \
 
 
198
  which supergateway rea opencode && \
199
  cp /tmp/stub-pw.js /usr/local/lib/node_modules/rea-agents/node_modules/playwright-core/index.js 2>/dev/null || true && \
200
  cp /tmp/stub-pw.mjs /usr/local/lib/node_modules/rea-agents/node_modules/playwright-core/index.mjs 2>/dev/null || true && \
 
195
  COPY security/stub-playwright-index.js /tmp/stub-pw.js
196
  COPY security/stub-playwright-index.mjs /tmp/stub-pw.mjs
197
  RUN npm install -g supergateway@latest rea-agents@latest opencode-ai @deepseek-ai/dsh pnpm yarn typescript && \
198
+ ln -sf "$(which supergateway || find / -name supergateway 2>/dev/null | head -1)" /usr/local/bin/supergateway && \
199
+ ln -sf "$(which rea || find / -name rea 2>/dev/null | head -1)" /usr/local/bin/rea && \
200
  which supergateway rea opencode && \
201
  cp /tmp/stub-pw.js /usr/local/lib/node_modules/rea-agents/node_modules/playwright-core/index.js 2>/dev/null || true && \
202
  cp /tmp/stub-pw.mjs /usr/local/lib/node_modules/rea-agents/node_modules/playwright-core/index.mjs 2>/dev/null || true && \