From 7ac9aa659d5afd542c9f9aa1246615e07342cebe Mon Sep 17 00:00:00 2001 From: openclaw-agent Date: Sat, 7 Feb 2026 11:29:06 +0000 Subject: [PATCH 1/3] fix(compose): avoid Clerk placeholders; include templates in backend image --- backend/Dockerfile | 10 +++++++--- compose.yml | 11 +++++++++-- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index df5a5870..6e0a28e5 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -33,9 +33,13 @@ COPY --from=deps /app/.venv /app/.venv ENV PATH="/app/.venv/bin:${PATH}" # Copy app source -COPY alembic ./alembic -COPY alembic.ini ./alembic.ini -COPY app ./app +COPY backend/alembic ./alembic +COPY backend/alembic.ini ./alembic.ini +COPY backend/app ./app + +# Copy repo-level templates used by agent provisioning, etc. +# (backend code resolves these from repo root) +COPY templates ./templates # Default API port EXPOSE 8000 diff --git a/compose.yml b/compose.yml index 14ab19dd..a07af7f9 100644 --- a/compose.yml +++ b/compose.yml @@ -31,7 +31,10 @@ services: backend: build: - context: ./backend + # Build from repo root so the backend image can include repo-level assets + # like `templates/`. + context: . + dockerfile: backend/Dockerfile env_file: - ./backend/.env.example environment: @@ -53,8 +56,12 @@ services: context: ./frontend args: NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL:-http://localhost:8000} + # Optional, user-managed env file. + # IMPORTANT: do NOT load `.env.example` here because it contains non-empty + # placeholder Clerk keys, which can accidentally flip Clerk "on". env_file: - - ./frontend/.env.example + - path: ./frontend/.env + required: false environment: NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL:-http://localhost:8000} depends_on: From 31181e1f5de11a267f7f658d23a04aa8b87dbda1 Mon Sep 17 00:00:00 2001 From: "Omar (OpenClaw)" Date: Sat, 7 Feb 2026 11:32:56 +0000 Subject: [PATCH 2/3] Fix flake8 W391 (no trailing blank line) --- backend/app/services/board_leads.py | 1 - 1 file changed, 1 deletion(-) diff --git a/backend/app/services/board_leads.py b/backend/app/services/board_leads.py index 89208a78..ba39e6d5 100644 --- a/backend/app/services/board_leads.py +++ b/backend/app/services/board_leads.py @@ -105,4 +105,3 @@ async def ensure_board_lead_agent( pass return agent, True - From ece2cb8a2a5c3c020bb452c2a888cd0272ab286a Mon Sep 17 00:00:00 2001 From: abhi1693 Date: Sat, 7 Feb 2026 14:22:41 +0000 Subject: [PATCH 3/3] chore: add root .dockerignore for backend build context --- .dockerignore | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..5e5f886f --- /dev/null +++ b/.dockerignore @@ -0,0 +1,36 @@ +.git +.gitignore +.github + +# Python +**/__pycache__ +**/*.py[cod] +**/*.pyo +**/*.pyd +**/.pytest_cache +**/.mypy_cache +**/.ruff_cache +**/.coverage +**/htmlcov +**/*.egg-info +.venv +**/.venv + +# Node / Next +**/node_modules +**/.next +**/dist +**/build +**/.turbo + +# OS / editor +.DS_Store +*.swp +*.swo + +# Local env files +**/.env +**/.env.* + +# Logs +**/*.log