[FIX] Remove --backend-only flag to enable both frontend and backend | Fix: Enable frontend on port 3000

This commit is contained in:
Ehsan.Asadi
2025-12-30 20:44:40 +03:30
parent 967f2aaec7
commit 4419dbd0a6

View File

@@ -68,7 +68,7 @@ COPY --chown=root:root . .
RUN python -m reflex export --no-zip
# Aggressive cleanup to reduce layer size
# NOTE: Keep .web directory - it contains frontend static files needed for --backend-only mode
# NOTE: Keep .web directory - it contains frontend static files
RUN set -ex && \
# Remove Python cache
find /build -type d -name "__pycache__" -exec rm -rf {} + 2>/dev/null || true && \
@@ -161,6 +161,6 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
# Use tini as init system for proper signal handling
ENTRYPOINT ["/usr/bin/tini", "--"]
# Run application
CMD ["python", "-m", "reflex", "run", "--env", "prod", "--backend-only"]
# Run application (both frontend and backend)
CMD ["python", "-m", "reflex", "run", "--env", "prod"]