-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] | ||
} |