From 23e0fd02f164c52a54c51f4ef554593cdb3f5ac6 Mon Sep 17 00:00:00 2001 From: Thomas Gotwig Date: Wed, 29 Nov 2023 13:16:38 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=B3=20Add=20devcontainer.json=20for=20?= =?UTF-8?q?Github=20Codespaces?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .devcontainer/Dockerfile | 10 ++++++++++ .devcontainer/devcontainer.json | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100644 .devcontainer/Dockerfile create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..35902b6 --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,10 @@ +FROM rust:latest + +# Install ffmpeg +RUN apt-get update && apt-get install -y ffmpeg + +# Install yt-dlp +RUN curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp && chmod a+rx /usr/local/bin/yt-dlp + +# Install go-task +RUN curl -L https://github.com/go-task/task/releases/download/v3.9.0/task_linux_amd64.tar.gz | tar xz && mv task /usr/local/bin diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..8424f69 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,10 @@ +{ + "build": { + "dockerfile": "Dockerfile" + }, + "customizations": { + "vscode": { + "extensions": ["rust-lang.rust"] + } + } +}