12 lines
426 B
Docker
12 lines
426 B
Docker
ARG BASE_IMAGE
|
|
FROM ${BASE_IMAGE}
|
|
|
|
# BenchFlow's official OpenCode registry uses precisely these paths.
|
|
COPY node /opt/benchflow/node
|
|
COPY js-agents /opt/benchflow/js-agents
|
|
|
|
RUN mkdir -p /opt/benchflow/bin \
|
|
&& printf '%s\n' '#!/bin/sh' 'exec /opt/benchflow/node/bin/node /opt/benchflow/js-agents/bin/opencode "$@"' > /opt/benchflow/bin/opencode \
|
|
&& chmod +x /opt/benchflow/bin/opencode \
|
|
&& chmod -R a+rX /opt/benchflow
|