@@ -128,6 +128,14 @@ COPY --from=builder /usr/local/bin /usr/local/bin
|
|||||||
# Running as root, so no need for chown
|
# Running as root, so no need for chown
|
||||||
COPY --from=builder /build/peikarband /app/peikarband
|
COPY --from=builder /build/peikarband /app/peikarband
|
||||||
|
|
||||||
|
# CRITICAL: Remove __init__.py from /app if it exists
|
||||||
|
# Reflex will crash if there's __init__.py in the app root directory
|
||||||
|
RUN if [ -f /app/__init__.py ]; then \
|
||||||
|
echo "⚠️ WARNING: Removing __init__.py from /app (causes Reflex crash)"; \
|
||||||
|
rm -f /app/__init__.py; \
|
||||||
|
fi && \
|
||||||
|
echo "✅ Verified: No __init__.py in /app root"
|
||||||
|
|
||||||
# Copy entrypoint script
|
# Copy entrypoint script
|
||||||
COPY docker/entrypoint.sh /usr/local/bin/entrypoint.sh
|
COPY docker/entrypoint.sh /usr/local/bin/entrypoint.sh
|
||||||
RUN chmod +x /usr/local/bin/entrypoint.sh && chmod +x /app/peikarband/.web/app/routes.js
|
RUN chmod +x /usr/local/bin/entrypoint.sh && chmod +x /app/peikarband/.web/app/routes.js
|
||||||
|
|||||||
@@ -117,6 +117,7 @@ readinessProbe:
|
|||||||
httpGet:
|
httpGet:
|
||||||
path: /ping
|
path: /ping
|
||||||
port: 8000
|
port: 8000
|
||||||
|
scheme: HTTP
|
||||||
initialDelaySeconds: 90 # Allow Reflex to fully start (build + startup takes time)
|
initialDelaySeconds: 90 # Allow Reflex to fully start (build + startup takes time)
|
||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
timeoutSeconds: 10 # Increased timeout for slow responses
|
timeoutSeconds: 10 # Increased timeout for slow responses
|
||||||
@@ -128,6 +129,7 @@ livenessProbe:
|
|||||||
httpGet:
|
httpGet:
|
||||||
path: /live
|
path: /live
|
||||||
port: 8000
|
port: 8000
|
||||||
|
scheme: HTTP
|
||||||
initialDelaySeconds: 120 # More time for liveness (after readiness + build)
|
initialDelaySeconds: 120 # More time for liveness (after readiness + build)
|
||||||
periodSeconds: 20 # Check less frequently
|
periodSeconds: 20 # Check less frequently
|
||||||
timeoutSeconds: 10 # Increased timeout
|
timeoutSeconds: 10 # Increased timeout
|
||||||
|
|||||||
@@ -140,6 +140,7 @@ livenessProbe:
|
|||||||
httpGet:
|
httpGet:
|
||||||
path: /ping
|
path: /ping
|
||||||
port: 8000
|
port: 8000
|
||||||
|
scheme: HTTP
|
||||||
initialDelaySeconds: 30
|
initialDelaySeconds: 30
|
||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
timeoutSeconds: 5
|
timeoutSeconds: 5
|
||||||
@@ -147,8 +148,9 @@ livenessProbe:
|
|||||||
|
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: http:/ping
|
path: /ping
|
||||||
port: 8000
|
port: 8000
|
||||||
|
scheme: HTTP
|
||||||
initialDelaySeconds: 10
|
initialDelaySeconds: 10
|
||||||
periodSeconds: 5
|
periodSeconds: 5
|
||||||
timeoutSeconds: 3
|
timeoutSeconds: 3
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
"""Peikarband Landing Application Package.
|
|
||||||
|
|
||||||
This package exports the Reflex app instance.
|
|
||||||
"""
|
|
||||||
|
|
||||||
__all__ = []
|
|
||||||
Reference in New Issue
Block a user