packages/dockerfiles/README.md
Sample Dockerfiles for different operating systems that show how to install Remotion including the browser.
Uses npx remotion browser ensure to install the browser, which requires some shared libraries.
./run.sh
This will:
packages/example (using src/browser-test-entry.ts)remotion compositions and renders two compositions: browser-test and html-in-canvasout/ directoryOutput videos (per platform — <platform>.mp4 and <platform>-html-in-canvas.mp4):
out/ubuntu24.mp4, out/ubuntu24-html-in-canvas.mp4out/ubuntu22.mp4, out/ubuntu22-html-in-canvas.mp4out/debian.mp4, out/debian-html-in-canvas.mp4out/nix.mp4, out/nix-html-in-canvas.mp4Located in packages/example/src/BrowserTest/index.tsx, it tests:
Located in packages/example/src/HtmlInCanvas/index.tsx, it tests the experimental WICG html-in-canvas CanvasRenderingContext2D.drawElementImage() API. If the API is unavailable in the bundled Chrome (e.g. without chrome://flags/#canvas-draw-element or Chrome Canary), the composition fails the render with an error.
The bundle is built from packages/example and copied into each Docker container during build.