Fix web Dockerfile to copy templates directory
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:
@@ -10,8 +10,9 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|||||||
|
|
||||||
# Copy application and documentation
|
# Copy application and documentation
|
||||||
COPY main.py .
|
COPY main.py .
|
||||||
COPY docs/ ./docs/
|
COPY templates/ ./templates/
|
||||||
COPY static/ ./static/
|
COPY static/ ./static/
|
||||||
|
COPY docs/ ./docs/
|
||||||
COPY mkdocs.yml .
|
COPY mkdocs.yml .
|
||||||
|
|
||||||
# Build documentation during image build
|
# Build documentation during image build
|
||||||
|
|||||||
Reference in New Issue
Block a user