opencode-config/docker-entrypoint.sh
Sergey 0d16b028fa
fix(draw-image): optional badge/subtitle + self-healing docker entrypoint (#144)
* fix(draw-image): conditional slot bg + optional subtitle in buildSvg

* test(draw-image): optional badge/subtitle unit+integration+e2e

* feat(docker): self-healing entrypoint shim + .dockerignore

* test(draw-image): pytest assert --subtitle omitted when absent

* docs(handoff): optional badge/subtitle + docker entrypoint handoff+ADR

* docs(handoff): set PR number 144

* docs(project-map): fix PR refs 143 to 144

---------

Co-authored-by: opencode-agent <agent@opencode.local>
2026-07-30 01:23:25 +03:00

7 lines
No EOL
301 B
Bash
Executable file

#!/bin/sh
DRAW_IMAGE_DIR="/root/.config/opencode/draw-image"
if [ ! -d "$DRAW_IMAGE_DIR/node_modules/sharp" ]; then
echo "[entrypoint] Installing draw-image dependencies..."
npm ci --prefix "$DRAW_IMAGE_DIR" || echo "[entrypoint] WARN: npm ci failed, draw-image may not work"
fi
exec opencode "$@"