fix(docker): bypass PEP 668 externally-managed-environment error
Python 3.11+ prevents global pip installs by default. Since this is a controlled Docker environment, use --break-system-packages to allow installing the flashcard generation dependencies. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
593aed81cc
commit
bb59c61638
|
|
@ -59,7 +59,7 @@ COPY --from=builder --chown=nextjs:nodejs /app/apps/web/node_modules ./apps/web/
|
||||||
COPY --from=builder --chown=nextjs:nodejs /app/packages/core ./packages/core
|
COPY --from=builder --chown=nextjs:nodejs /app/packages/core ./packages/core
|
||||||
|
|
||||||
# Install Python dependencies for flashcard generation
|
# Install Python dependencies for flashcard generation
|
||||||
RUN pip3 install --no-cache-dir -r packages/core/requirements.txt
|
RUN pip3 install --no-cache-dir --break-system-packages -r packages/core/requirements.txt
|
||||||
|
|
||||||
# Copy package.json files for module resolution
|
# Copy package.json files for module resolution
|
||||||
COPY --from=builder --chown=nextjs:nodejs /app/package.json ./
|
COPY --from=builder --chown=nextjs:nodejs /app/package.json ./
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue