From cc606e366afaa0dcd8da89cb53b88b2b012ca859 Mon Sep 17 00:00:00 2001 From: dnviti Date: Tue, 21 Oct 2025 14:59:50 +0200 Subject: [PATCH] fix: add poetry-plugin-export and fix PYTHONPATH in Dockerfiles MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Install poetry-plugin-export alongside Poetry 1.8.0 in all Python service Dockerfiles (api, chat, worker) - Fix PYTHONPATH environment variable to avoid undefined variable warnings - Resolves Docker build pipeline failure where poetry export command was not available 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- deploy/docker/Dockerfile.api | 6 +++--- deploy/docker/Dockerfile.chat | 4 ++-- deploy/docker/Dockerfile.worker | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/deploy/docker/Dockerfile.api b/deploy/docker/Dockerfile.api index 971ec4f..c65e35d 100644 --- a/deploy/docker/Dockerfile.api +++ b/deploy/docker/Dockerfile.api @@ -3,8 +3,8 @@ FROM python:3.12-slim AS builder WORKDIR /build -# Install Poetry -RUN pip install --no-cache-dir poetry==1.8.0 +# Install Poetry and export plugin +RUN pip install --no-cache-dir poetry==1.8.0 poetry-plugin-export # Copy dependency files COPY pyproject.toml poetry.lock ./ @@ -48,7 +48,7 @@ RUN pip install --no-cache-dir poetry-core RUN pip install --no-cache-dir /app # Set PYTHONPATH to ensure module can be imported -ENV PYTHONPATH=/app/src:$PYTHONPATH +ENV PYTHONPATH=/app/src # Create necessary directories RUN mkdir -p /app/logs /app/output diff --git a/deploy/docker/Dockerfile.chat b/deploy/docker/Dockerfile.chat index 0484fbd..0681a26 100644 --- a/deploy/docker/Dockerfile.chat +++ b/deploy/docker/Dockerfile.chat @@ -3,8 +3,8 @@ FROM python:3.12-slim AS builder WORKDIR /build -# Install Poetry -RUN pip install --no-cache-dir poetry==1.8.0 +# Install Poetry and export plugin +RUN pip install --no-cache-dir poetry==1.8.0 poetry-plugin-export # Copy dependency files COPY pyproject.toml poetry.lock ./ diff --git a/deploy/docker/Dockerfile.worker b/deploy/docker/Dockerfile.worker index c7372de..9d23612 100644 --- a/deploy/docker/Dockerfile.worker +++ b/deploy/docker/Dockerfile.worker @@ -3,8 +3,8 @@ FROM python:3.12-slim AS builder WORKDIR /build -# Install Poetry -RUN pip install --no-cache-dir poetry==1.8.0 +# Install Poetry and export plugin +RUN pip install --no-cache-dir poetry==1.8.0 poetry-plugin-export # Copy dependency files COPY pyproject.toml poetry.lock ./ @@ -49,7 +49,7 @@ RUN pip install --no-cache-dir poetry-core RUN pip install --no-cache-dir /app # Set PYTHONPATH to ensure module can be imported -ENV PYTHONPATH=/app/src:$PYTHONPATH +ENV PYTHONPATH=/app/src # Create necessary directories RUN mkdir -p /app/logs /app/output