Skip to content

Fix missing web templates and static assets when building with Dockerfile-Web#82

Open
vitorvasc wants to merge 1 commit intoQuackster:masterfrom
vitorvasc:fix/dockerfile-web-assets
Open

Fix missing web templates and static assets when building with Dockerfile-Web#82
vitorvasc wants to merge 1 commit intoQuackster:masterfrom
vitorvasc:fix/dockerfile-web-assets

Conversation

@vitorvasc
Copy link
Contributor

Summary

  • Add COPY instructions for tools/www-tpl and tools/www to Dockerfile-Web.

These directories are required at runtime but were never copied into the container image. Dockerfile-Web only copied the JAR, figuredata.xml, and the entrypoint script, but not the templates (tools/www-tpl/) or static assets (tools/www/) directories. This behavior was causing a container crash on startup, with an infinite recursion:

havana-web-1     | 2026-01-28T10:22:28.478 ERROR [ErrorLogger] - Error occurred: 
havana-web-1     | java.lang.Exception: The template view overrides/default does not exist!
havana-web-1     | The path: /havana-web/tools/www-tpl/default-en/overrides/default.tpl
havana-web-1     |      at org.alexdev.http.template.TwigTemplate.start(TwigTemplate.java:63)
havana-web-1     |      at org.alexdev.duckhttpd.server.connection.WebConnection.template(WebConnection.java:164)
havana-web-1     |      at org.alexdev.http.server.ServerResponses.getErrorResponse(ServerResponses.java:27)
havana-web-1     |      at org.alexdev.http.template.TwigTemplate.start(TwigTemplate.java:83)
havana-web-1     |      at org.alexdev.duckhttpd.server.connection.WebConnection.template(WebConnection.java:164)
havana-web-1     |      at org.alexdev.http.server.ServerResponses.getErrorResponse(ServerResponses.java:27)
havana-web-1     |      at org.alexdev.http.template.TwigTemplate.start(TwigTemplate.java:83)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant