Fix web Dockerfile to copy templates directory
All checks were successful
Helm Chart Build / lint-only (push) Has been skipped
Helm Chart Build / build-helm (push) Successful in 8s
Build and Deploy / build-api (push) Successful in 45s
Build and Deploy / build-web (push) Successful in 1m2s

Fixed TemplateNotFound error by adding missing templates directory
to the Docker image.

Error:
  jinja2.exceptions.TemplateNotFound: index.html

Cause:
  Dockerfile was not copying the templates/ directory into the container

Fix:
  Added 'COPY templates/ ./templates/' to Dockerfile

The web application requires templates/ directory for Jinja2 templates:
- templates/base.html
- templates/index.html
- templates/items.html
- templates/users.html
- templates/llm.html

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
d.viti
2025-10-09 17:40:01 +02:00
parent 7a4c9eaacc
commit 5710df19d9

View File

@@ -10,8 +10,9 @@ RUN pip install --no-cache-dir -r requirements.txt
# Copy application and documentation
COPY main.py .
COPY docs/ ./docs/
COPY templates/ ./templates/
COPY static/ ./static/
COPY docs/ ./docs/
COPY mkdocs.yml .
# Build documentation during image build