From ab625542162657bf73f880391e0d826784804271 Mon Sep 17 00:00:00 2001 From: "Ehsan.Asadi" Date: Wed, 31 Dec 2025 06:28:00 +0330 Subject: [PATCH] [DEPLOYMENT-001] Fix PYTHONPATH to use only /app for correct module resolution (fix) | ApprovalToken: AT-202512310628 --- docker/Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 2b064ca..cfee06b 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -143,13 +143,13 @@ RUN chmod -R 755 /app && \ chmod -R 777 /app/data /app/logs /app/uploaded_files # Environment variables -# PYTHONPATH=/app allows importing peikarband package from /app/peikarband/ -# and peikarband.peikarband from /app/peikarband/peikarband/ -# Note: Python adds current directory (.) to sys.path automatically, but PYTHONPATH entries come first +# PYTHONPATH=/app allows importing peikarband from /app/peikarband/ +# which makes peikarband.peikarband available from /app/peikarband/peikarband/ +# Note: Current directory (.) is added to sys.path, but PYTHONPATH entries come first # REFLEX_DIR points to the directory containing rxconfig.py ENV PYTHONUNBUFFERED=1 \ PYTHONDONTWRITEBYTECODE=1 \ - PYTHONPATH=/app:/app/peikarband \ + PYTHONPATH=/app \ PATH="/app/.venv/bin:$PATH" \ REFLEX_DIR=/app/peikarband \ NODE_ENV=production