Docker Deployment
Run the File Viewer static demo in Docker, verify its viewer, iframe, comparison, and health endpoints, and publish multi-architecture images.
The Docker image serves the static demo build through nginx. It includes the main viewer at /, the zero-dependency iframe entry at /iframe.html, and the comparison demo at /compare.html.
Run From Docker Hub
docker run -d \
--name file-viewer \
-p 8080:80 \
flyfishdev/file-viewer:latestOpen:
- Main viewer:
http://localhost:8080/ - iframe embed:
http://localhost:8080/iframe.html?url=/example/word.docx - Comparison demo:
http://localhost:8080/compare.html - Health check:
http://localhost:8080/healthz
Build Locally
pnpm docker:build
docker run --rm -p 8080:80 flyfishdev/file-viewer:latestMulti-arch Publish
docker login
DOCKER_IMAGE=flyfishdev/file-viewer pnpm docker:publishThe Docker flow targets linux/amd64 and linux/arm64.
Offline Notes
The image serves static demo assets from itself, including offline Worker, WASM, vendor, and example files. Keep /iframe.html, /assets/*, /vendor/*, and /example/* on the same static origin when putting another reverse proxy in front of the container. For native component integrations, still copy viewer runtime assets into your own product deployment with:
npx --yes file-viewer-copy-assets ./public/file-viewerTranslation Contributions
Translate File Viewer documentation and interface text while preserving API examples, language fallbacks and accessibility.
Distribution
File Viewer by Flyfish is distributed through standard npm packages, public GitHub repositories, release downloads, and self-hostable worker/WASM assets.