From 4419dbd0a675f31d1363b9f17e82f30137e7674f Mon Sep 17 00:00:00 2001 From: "Ehsan.Asadi" Date: Tue, 30 Dec 2025 20:44:40 +0330 Subject: [PATCH] [FIX] Remove --backend-only flag to enable both frontend and backend | Fix: Enable frontend on port 3000 --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8623fea..c8f69b6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"]