Keep Webapp packaging patch portable and whitespace-clean

This commit is contained in:
Mikei386 committed 2026-10-26 22:52:09 +01:00
1 parent a70a5fd57c
commit 17020536d1
1 file changed
+5 -19
@@ -1,24 +1,10 @@
diff --git a/tmp/hermes-webapp-Dockerfile b/tmp/Hermes-Webapp-Test.Dockerfile
index d7fa4f7..1104adf 100644
--- a/tmp/hermes-webapp-Dockerfile
+++ b/tmp/Hermes-Webapp-Test.Dockerfile
@@ -322,6 +322,9 @@ COPY --from=icons /tmp/hermes-icons /tmp/hermes-icons
RUN node scripts/build/tui.mjs --source /opt/hermes --out /opt/products/tui && \
node scripts/build/web.mjs --source /opt/hermes --icons /tmp/hermes-icons --out /opt/products/web
--- a/Dockerfile
+++ b/Dockerfile.webapp
@@ -324,0 +325,3 @@
+COPY . .
+RUN node apps/desktop/scripts/build-webapp.mjs
+
FROM python_deps AS runtime
# Standalone TypeScript linting is a runtime feature; Vite/esbuild are not.
COPY --from=frontend_build /opt/hermes/node_modules/typescript /opt/hermes/node_modules/typescript
@@ -366,6 +369,9 @@ RUN mkdir -p /tmp/hermes-runtime && chmod 0700 /tmp/hermes-runtime
# write so the build steps below don't need chmod u+w dances.
COPY --link --chmod=a+rX,go-w . .
@@ -367,0 +371,3 @@
+
+# Webapp renderer built by the upstream product builder.
+COPY --from=frontend_build /opt/hermes/apps/desktop/dist-webapp /opt/hermes/apps/desktop/dist-webapp
+
# The shared assembler binds the prepared environment and frontend products.
RUN /opt/hermes/.venv/bin/python -m docker.build_agent