From 8714858e43b4e6029a83471bd76710469bf50f2b Mon Sep 17 00:00:00 2001 From: Thomas Gotwig Date: Wed, 29 Nov 2023 13:16:38 +0100 Subject: [PATCH] Add devcontainer.json --- .devcontainer/Dockerfile | 11 +++++++++++ .devcontainer/devcontainer.json | 9 +++++++++ 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..ab62589 --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,11 @@ +# Start from the latest Rust image +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..b3fd7e8 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,9 @@ +{ + "name": "Rust Project", + "build": { + "dockerfile": "Dockerfile" + }, + "forwardPorts": [8000], + "postCreateCommand": "cargo build", + "extensions": ["rust-lang.rust"] +}