Fix Dockerfile: copy source before pip install

The pyproject.toml references the package source, so src/ must be
present when pip resolves metadata.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-22 08:51:45 -06:00
parent 7ff69449d6
commit 179071b817

View File

@@ -8,16 +8,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
WORKDIR /app WORKDIR /app
# Install Python deps # Copy everything and install
COPY pyproject.toml . COPY pyproject.toml .
RUN pip install --no-cache-dir . COPY src/ src/
# Copy source
COPY alembic.ini . COPY alembic.ini .
COPY alembic/ alembic/ COPY alembic/ alembic/
COPY src/ src/
# Install the project itself
RUN pip install --no-cache-dir -e . RUN pip install --no-cache-dir -e .
# Create cache directories # Create cache directories