fix
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Ehsan.Asadi
2025-12-31 13:39:41 +03:30
parent 844cb29e57
commit 79e97ede79
4 changed files with 13 additions and 7 deletions

View File

@@ -128,6 +128,14 @@ COPY --from=builder /usr/local/bin /usr/local/bin
# Running as root, so no need for chown
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 docker/entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh && chmod +x /app/peikarband/.web/app/routes.js