Skip to content
Draft
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.git
node_modules
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ dist

# Ignore the output video from Git but not videos you import into src/.
out

build
31 changes: 31 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
FROM node:22-bookworm-slim

RUN apt-get update
RUN apt install -y \
libnss3 \
libdbus-1-3 \
libatk1.0-0 \
libgbm-dev \
libasound2 \
libxrandr2 \
libxkbcommon-dev \
libxfixes3 \
libxcomposite1 \
libxdamage1 \
libatk-bridge2.0-0 \
libpango-1.0-0 \
libcairo2 \
libcups2

WORKDIR /app

COPY package-lock.json package.json ./

RUN corepack enable && corepack prepare --activate
RUN npm ci

COPY . ./

RUN npx remotion browser ensure

ENTRYPOINT ["npm","run","render-chunk","--"]
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,18 @@ Found an issue with Remotion? [File an issue here](https://github.com/JonnyBurge
Note that for some entities a company license is needed. [Read the terms here](https://github.com/remotion-dev/remotion/blob/main/LICENSE.md).

The content of this template is licensed under MIT.

## Docker

```sh
$ docker build --platform=linux/amd64 -t three-template-renderer .
$ npm run bundle
$ docker run --platform=linux/amd64 --rm \
-v "$PWD/build":/bundle \
-v "$PWD/tmp":/output \
three-template-renderer \
--bundle /bundle \
--range "0-100" \
--props '{}' \
--out "/output/chunk-0-100.ts"
```
Loading