diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..cb746ed --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,17 @@ +# 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 +RUN curl -O https://dl.google.com/go/go1.16.3.linux-amd64.tar.gz +RUN tar xvf go1.16.3.linux-amd64.tar.gz +RUN chown -R root:root ./go +RUN mv go /usr/local + +# Install go-task +RUN /usr/local/go/bin/go install github.com/go-task/task/v3/cmd/task@latest 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"] +}