fix: add demo/ folder to Dockerfile so /demo route works in container #34
Reference in New Issue
Block a user
Delete Branch "feature/demo-dockerfile"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The
demo/folder and/demostatic route inserver.jswere both present on master, but/demo/index.htmlwas still serving the React app inside Docker.Root cause: The Dockerfile uses explicit
COPYstatements for each directory in the production stage.demo/was never listed, so it was silently excluded from the container image — Express had nothing to serve and fell through to the SPA catch-all.Change
Added one line to the production stage of the Dockerfile:
Placed after the existing
pdf/copy, beforeRUN mkdir -p /data.After merging
Rebuild and restart the container —
/demo/and/demo/index.htmlwill serve the standalone stakeholder demo page as intended.