From 14177224380b8c37413123bee344c9b762055a15 Mon Sep 17 00:00:00 2001 From: Thomas Hallock Date: Sun, 19 Oct 2025 11:39:20 -0500 Subject: [PATCH] fix(docker): add packages/templates for Typst flashcard generation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Typst was failing with "input file not found" error because the templates directory containing flashcards-input.typ was missing from the Docker image. Added COPY command to include packages/templates in the production image. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 7429b05e..6a721367 100644 --- a/Dockerfile +++ b/Dockerfile @@ -73,6 +73,9 @@ COPY --from=builder --chown=nextjs:nodejs /app/apps/web/node_modules ./apps/web/ # Copy core package (needed for Python flashcard generation scripts) COPY --from=builder --chown=nextjs:nodejs /app/packages/core ./packages/core +# Copy templates package (needed for Typst templates) +COPY --from=builder --chown=nextjs:nodejs /app/packages/templates ./packages/templates + # Install Python dependencies for flashcard generation RUN pip3 install --no-cache-dir --break-system-packages -r packages/core/requirements.txt