Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Dockerfile.preview
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ FROM node:24-alpine

RUN npm install -g serve

# Production serves the static resources of the docs app (for example the
# tutorial's SQL files and videos under /vaadin/) from the Spring Boot app,
# which the preview doesn't run. Copy them into the static site instead, so
# they're found at the same paths. The site is copied after them, so its own
# files win if a path clashes.
COPY --from=build /app/src/main/resources/META-INF/resources/ /app/public/
COPY --from=build /app/dspublisher/out/public /app/public
COPY --from=build /app/dspublisher/changes/changes.json /app/public/preview-changes.json

Expand Down
Loading