@@ -7,13 +7,18 @@ RUN apt-get update \
77RUN useradd -m -s /bin/bash opencode
88WORKDIR /app
99
10- RUN git clone https://github.com/nexu-io/open-design.git /app/open-design
10+ ARG OPEN_DESIGN_REF=1592beb96134f9d49b8a90dc6a359b94a69af57e
11+ ARG OPENCODE_AI_VERSION=1.14.31
12+
13+ RUN git clone https://github.com/nexu-io/open-design.git /app/open-design \
14+ && cd /app/open-design \
15+ && git checkout "$OPEN_DESIGN_REF"
1116WORKDIR /app/open-design
1217
1318RUN corepack enable \
1419 && corepack prepare pnpm@10.33.2 --activate \
1520 && pnpm install --frozen-lockfile=false \
16- && npm install -g opencode-ai@latest
21+ && npm install -g " opencode-ai@$OPENCODE_AI_VERSION"
1722
1823# Make the daemon listen on OD_HOST when upstream exposes host/port constants.
1924# This is intentionally best-effort because upstream may change file layout.
@@ -29,7 +34,8 @@ for (const file of candidates) {
2934}
3035NODE
3136
32- RUN pnpm build || pnpm -r build
37+ RUN pnpm --filter @open-design/daemon build \
38+ && (pnpm build || pnpm -r build)
3339
3440ENV OD_HOST=0.0.0.0
3541ENV OD_PORT=7456
@@ -41,4 +47,4 @@ RUN mkdir -p /home/opencode/.config/opencode /home/opencode/.local/share/opencod
4147USER opencode
4248EXPOSE 7456
4349
44- CMD ["sh" , "-lc" , "node apps/daemon/cli.js --host ${OD_HOST:-0.0.0.0} --port ${OD_PORT:-7456} --no-open || node daemon /cli.js --host ${OD_HOST:-0.0.0.0} --port ${OD_PORT:-7456} --no-open" ]
50+ CMD ["sh" , "-lc" , "node apps/daemon/dist /cli.js --port ${OD_PORT:-7456} --no-open" ]
0 commit comments