Skip to content

🎥 Make videos programmatically with React

add ubuntu way

Jonny Burgered8da7439b7d
diff --git a/packages/dockerfiles/Dockerfile.debian b/packages/dockerfiles/Dockerfile.debian
index ef49a0be31..e358c99061 100644
--- a/packages/dockerfiles/Dockerfile.debian
+++ b/packages/dockerfiles/Dockerfile.debian
@@ -6,5 +6,16 @@ RUN git clone https://github.com/remotion-dev/template-helloworld /usr/app
RUN cd /usr/app
RUN npm i
RUN npx remotion browser ensure
-RUN apt install libnss3 libdbus-1-3 libatk1.0-0 libgbm-dev libasound2 libxrandr2 libxkbcommon-dev libxfixes3 libxcomposite1 libxdamage1 libatk-bridge2.0-0 -y
+RUN apt install -y \
+ libnss3 \
+ libdbus-1-3 \
+ libatk1.0-0 \
+ libgbm-dev \
+ libasound2 \
+ libxrandr2 \
+ libxkbcommon-dev \
+ libxfixes3 \
+ libxcomposite1 \
+ libxdamage1 \
+ libatk-bridge2.0-0
RUN npx remotion compositions
diff --git a/packages/dockerfiles/Dockerfile.ubuntu b/packages/dockerfiles/Dockerfile.ubuntu
new file mode 100644
index 0000000000..cebe66eb10
--- /dev/null
+++ b/packages/dockerfiles/Dockerfile.ubuntu
@@ -0,0 +1,24 @@
+FROM ubuntu:22.04
+
+RUN apt-get update
+RUN apt-get install git curl make -y
+RUN curl -fsSL https://raw.githubusercontent.com/tj/n/master/bin/n | bash -s 20
+WORKDIR /usr/app
+RUN git clone https://github.com/remotion-dev/template-helloworld /usr/app
+RUN cd /usr/app
+RUN npm i
+RUN npx remotion browser ensure
+RUN apt install -y \
+ libnss3 \
+ libdbus-1-3 \
+ libatk1.0-0 \
+ libasound2 \
+ libxrandr2 \
+ libxkbcommon-dev \
+ libxfixes3 \
+ libxcomposite1 \
+ libxdamage1 \
+ libgbm-dev \
+ libatk-bridge2.0-0
+
+RUN npx remotion compositions
diff --git a/packages/dockerfiles/run.sh b/packages/dockerfiles/run.sh
index 9edae015bb..bb21c0e748 100644
--- a/packages/dockerfiles/run.sh
+++ b/packages/dockerfiles/run.sh
@@ -1 +1,3 @@
+set -e
+docker build --file Dockerfile.ubuntu . --output type=tar,dest=/dev/null --progress=plain
docker build --file Dockerfile.debian . --output type=tar,dest=/dev/null --progress=plain