Skip to content

🎥 Make videos programmatically with React

Remove Node.js 18 installation from Docker base image

Jonny Burger38f222d9f095
diff --git a/packages/docs/docs/miscellaneous/cloud-gpu-docker.mdx b/packages/docs/docs/miscellaneous/cloud-gpu-docker.mdx
index f53b69a3ba..a84531f208 100644
--- a/packages/docs/docs/miscellaneous/cloud-gpu-docker.mdx
+++ b/packages/docs/docs/miscellaneous/cloud-gpu-docker.mdx
@@ -22,11 +22,8 @@ We recommend to first follow these instructions and make changes once you have a
<Step>1</Step> Follow the instructions for <a href="/docs/miscellaneous/cloud-gpu">GPUs on EC2</a>
. You can skip installing Chrome, Node.js and cloning the repo to render a video.
-<br />
<Step>2</Step> Install NVIDIA Container toolkit:
-<br />
-<br />
```bash title="Add keyring"
curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg
@@ -39,7 +36,6 @@ sudo apt-get install -y nvidia-container-toolkit
```
<Step>3</Step>Install Docker: <br />
-<br />
```bash title="Add Docker's official GPG key"
sudo apt-get update
@@ -59,7 +55,6 @@ sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin
```
<Step>4</Step>Configure Docker to use the NVIDIA runtime <br />
-<br />
```bash title="Configure the NVIDIA container runtime"
sudo nvidia-ctk runtime configure --runtime=docker
@@ -70,15 +65,11 @@ sudo systemctl restart docker
. You can for example create them using the <code>nano ./file-to-create</code> command.
Use <kbd>Ctrl</kbd>
<kbd>X</kbd> to save and quit. <br />
-<br />
```bash title="Dockerfile"
FROM node:20-bookworm
RUN apt-get update
-RUN apt-get install -y curl gnupg git chromium
-RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
-RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main" > /etc/apt/sources.list.d/nodesource.list
-RUN apt-get clean
+RUN apt-get install -y curl gnupg git
RUN rm -rf /var/lib/apt/lists/*
# Clone the repo
@@ -99,7 +90,6 @@ npx remotion render --gl=angle-egl Scene out/video.mp4
```
<Step>6</Step> Build the container and run a sample render: <br />
-<br />
```bash
sudo docker build . -t remotion-docker-gpu