fix: add poetry-plugin-export and fix PYTHONPATH in Dockerfiles
Some checks failed
Build / Code Quality Checks (push) Successful in 6m22s
Build / Build & Push Docker Images (chat) (push) Failing after 35s
Build / Build & Push Docker Images (frontend) (push) Successful in 39s
Build / Build & Push Docker Images (worker) (push) Failing after 55s
Build / Build & Push Docker Images (api) (push) Failing after 1m0s

- 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 <noreply@anthropic.com>
This commit is contained in:
2025-10-21 14:59:50 +02:00
parent 2db606ea00
commit cc606e366a
3 changed files with 8 additions and 8 deletions

View File

@@ -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