Skip to content

Commit

Permalink
sync image
Browse files Browse the repository at this point in the history
  • Loading branch information
azep-ninja committed Jan 1, 2025
1 parent 90ac5d9 commit 3a4e22b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,15 @@ RUN pnpm install --frozen-lockfile || \

# Build with detailed logging
RUN set -e && \
PNPM_DEBUG=1 pnpm build-docker || \
(echo "Build failed, showing detailed logs:" && \
for i in 1 2 3; do \
echo "Build attempt $i" && \
PNPM_DEBUG=1 pnpm build-docker && exit 0 || \
echo "Build failed, retrying..." && \
sleep 5; \
done && \
echo "All build attempts failed" && \
find . -name "*.log" -type f -exec cat {} + && \
exit 1)
exit 1

# Prune for production
RUN pnpm prune --prod && \
Expand Down

0 comments on commit 3a4e22b

Please sign in to comment.