[FIX] Remove --backend-only flag to enable both frontend and backend | Fix: Enable frontend on port 3000
This commit is contained in:
@@ -68,7 +68,7 @@ COPY --chown=root:root . .
|
|||||||
RUN python -m reflex export --no-zip
|
RUN python -m reflex export --no-zip
|
||||||
|
|
||||||
# Aggressive cleanup to reduce layer size
|
# 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 && \
|
RUN set -ex && \
|
||||||
# Remove Python cache
|
# Remove Python cache
|
||||||
find /build -type d -name "__pycache__" -exec rm -rf {} + 2>/dev/null || true && \
|
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
|
# Use tini as init system for proper signal handling
|
||||||
ENTRYPOINT ["/usr/bin/tini", "--"]
|
ENTRYPOINT ["/usr/bin/tini", "--"]
|
||||||
|
|
||||||
# Run application
|
# Run application (both frontend and backend)
|
||||||
CMD ["python", "-m", "reflex", "run", "--env", "prod", "--backend-only"]
|
CMD ["python", "-m", "reflex", "run", "--env", "prod"]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user