🎥 Make videos programmatically with React
Discard changes to packages/dockerfiles/Dockerfile.nix
Jonny Burger7484d13606a3
diff --git a/packages/dockerfiles/Dockerfile.nix b/packages/dockerfiles/Dockerfile.nixindex 24410aeb42..ece1c48ed3 100644--- a/packages/dockerfiles/Dockerfile.nix+++ b/packages/dockerfiles/Dockerfile.nix@@ -1,4 +1,4 @@-# TODO: Cannot execute `npx remotion render HelloWorld --browser-executable=$(which chromium)` yet, because it misses libstdc++.so.6+# TODO: Cannot execute `npx remotion render HelloWorld --browser-executable=$(which chromium)` yet, because it misses libstdc++.so.6FROM nixos/nixRUN mkdir -p /etc/profile.d@@ -6,20 +6,19 @@ RUN echo 'set -eux; nix-channel --update' > /etc/profile.d/nix.shWORKDIR /usr/app+RUN git clone https://github.com/remotion-dev/template-helloworld /usr/app+RUN cd /usr/app++RUN nix-env -iA nixpkgs.nodejs-18_xRUN nix-env -iA nixpkgs.ungoogled-chromium-RUN npm i -g @remotion/cli+RUN npm iCOPY remotion.nix .-# Copy the pre-built bundle-COPY bundle/ /usr/app/bundle/--RUN chmod +x /root/.npm/_npx/*/node_modules/@remotion/compositor-linux-arm64-gnu/remotion || true-RUN nix run nixpkgs#patchelf --extra-experimental-features nix-command --extra-experimental-features flakes -- --set-interpreter "$(nix eval nixpkgs#stdenv.cc.bintools.dynamicLinker --raw --extra-experimental-features nix-command --extra-experimental-features flakes)" /root/.npm/_npx/*/node_modules/@remotion/compositor-linux-arm64-gnu/remotion || true-RUN nix run nixpkgs#patchelf --extra-experimental-features nix-command --extra-experimental-features flakes -- --set-interpreter "$(nix eval nixpkgs#stdenv.cc.bintools.dynamicLinker --raw --extra-experimental-features nix-command --extra-experimental-features flakes)" /root/.npm/_npx/*/node_modules/@remotion/compositor-linux-arm64-gnu/ffmpeg || true-RUN nix run nixpkgs#patchelf --extra-experimental-features nix-command --extra-experimental-features flakes -- --set-interpreter "$(nix eval nixpkgs#stdenv.cc.bintools.dynamicLinker --raw --extra-experimental-features nix-command --extra-experimental-features flakes)" /root/.npm/_npx/*/node_modules/@remotion/compositor-linux-arm64-gnu/ffprobe || true--RUN npx remotion compositions /usr/app/bundle --browser-executable=$(which chromium)-RUN npx remotion render /usr/app/bundle browser-test --browser-executable=$(which chromium) /usr/app/out.mp4+RUN chmod +x /usr/app/node_modules/@remotion/compositor-linux-arm64-gnu/remotion+RUN nix run nixpkgs#patchelf --extra-experimental-features nix-command --extra-experimental-features flakes -- --set-interpreter "$(nix eval nixpkgs#stdenv.cc.bintools.dynamicLinker --raw --extra-experimental-features nix-command --extra-experimental-features flakes)" /usr/app/node_modules/@remotion/compositor-linux-arm64-gnu/remotion+RUN nix run nixpkgs#patchelf --extra-experimental-features nix-command --extra-experimental-features flakes -- --set-interpreter "$(nix eval nixpkgs#stdenv.cc.bintools.dynamicLinker --raw --extra-experimental-features nix-command --extra-experimental-features flakes)" /usr/app/node_modules/@remotion/compositor-linux-arm64-gnu/ffmpeg+RUN nix run nixpkgs#patchelf --extra-experimental-features nix-command --extra-experimental-features flakes -- --set-interpreter "$(nix eval nixpkgs#stdenv.cc.bintools.dynamicLinker --raw --extra-experimental-features nix-command --extra-experimental-features flakes)" /usr/app/node_modules/@remotion/compositor-linux-arm64-gnu/ffprobe+RUN npx remotion render HelloWorld --browser-executable=$(which chromium)