Skip to content

Commit ba0a297

Browse files
committed
fix(api): retry skiller install in controller image
1 parent dd273e0 commit ba0a297

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

packages/api/Dockerfile

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,18 @@ RUN bun run --cwd packages/api build
7474
RUN bun scripts/skiller-apply-docker-git-patches.mjs
7575
RUN test -f third_party/skiller-desktop-skills-manager/package.json \
7676
&& cd third_party/skiller-desktop-skills-manager \
77-
&& bun install --frozen-lockfile --silent \
77+
&& for attempt in 1 2 3 4 5; do \
78+
if bun install --frozen-lockfile --silent; then \
79+
break; \
80+
fi; \
81+
if [ "$attempt" = "5" ]; then \
82+
echo "skiller bun install failed after retries" >&2; \
83+
exit 1; \
84+
fi; \
85+
echo "skiller bun install attempt ${attempt} failed; retrying..." >&2; \
86+
rm -rf /root/.bun/install/cache node_modules; \
87+
sleep $((attempt * 2)); \
88+
done \
7889
&& bun run build \
7990
&& touch out/.docker-git-browser-folder-picker.patch \
8091
&& mkdir -p out/preload \

0 commit comments

Comments
 (0)