We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c2354d commit 77e233cCopy full SHA for 77e233c
deploy/Dockerfile
@@ -19,7 +19,15 @@ RUN if [ -z "$TKS_BUILD_VERSION" ]; then \
19
pip install --no-cache-dir --pre tksbrokerapi; \
20
else \
21
echo "📦 Installing TKSBrokerAPI==$TKS_BUILD_VERSION from PyPI..." && \
22
- pip install --no-cache-dir tksbrokerapi==$TKS_BUILD_VERSION; \
+ attempt=0; \
23
+ until pip install --no-cache-dir tksbrokerapi==$TKS_BUILD_VERSION || [ $attempt -ge 5 ]; do \
24
+ attempt=$((attempt+1)); \
25
+ echo "⏳ Attempt $attempt/5: Waiting 5s for PyPI..." && sleep 5; \
26
+ done; \
27
+ if [ $attempt -ge 5 ]; then \
28
+ echo "❌ Failed to install TKSBrokerAPI==$TKS_BUILD_VERSION after 5 attempts"; \
29
+ exit 1; \
30
+ fi; \
31
fi
32
33
# Clean image
0 commit comments