Skip to content

Commit

Permalink
Retry loop for gunicorn installation
Browse files Browse the repository at this point in the history
  • Loading branch information
acwhite211 authored Feb 7, 2025
1 parent c294dd3 commit 016c173
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,12 @@ RUN set -eux; \
echo "pip install failed, retrying in 5 seconds..."; sleep 5; \
done

RUN ve/bin/pip install --no-cache-dir gunicorn
# Retry loop for gunicorn installation
RUN set -eux; \
for i in 1 2 3; do \
ve/bin/pip install --no-cache-dir gunicorn && break; \
echo "gunicorn install failed, retrying in 5 seconds..."; sleep 5; \
done

COPY --from=build-frontend /home/node/dist specifyweb/frontend/static/js
COPY --chown=specify:specify specifyweb /opt/specify7/specifyweb
Expand Down

0 comments on commit 016c173

Please sign in to comment.