Skip to content

Commit

Permalink
Add devcontainer.json
Browse files Browse the repository at this point in the history
  • Loading branch information
tgotwig committed Nov 29, 2023
1 parent 0e03e39 commit 6f0319b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
9 changes: 9 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "Rust Project",
"build": {
"dockerfile": "Dockerfile"
},
"forwardPorts": [8000],
"postCreateCommand": "cargo build",
"extensions": ["rust-lang.rust"]
}

0 comments on commit 6f0319b

Please sign in to comment.