Skip to content

Commit

Permalink
fix: youtube-dl
Browse files Browse the repository at this point in the history
  • Loading branch information
xinsnake committed May 23, 2023
1 parent e349283 commit 3e6d0b6
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/go
{
"name": "Go",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/go:0-1-bullseye"

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "go version",

// Configure tool-specific properties.
// "customizations": {},

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ COPY y2p /usr/local/bin/y2p
ADD assets /assets

# put youtube-dl
ADD https://yt-dl.org/downloads/latest/youtube-dl /usr/local/bin/youtube-dl
ADD https://github.com/ytdl-patched/youtube-dl/releases/download/2023.05.23.19419/youtube-dl /usr/local/bin/youtube-dl

# modify permission to allow execute
RUN adduser -u 14295 -DH -s /bin/sh y2p && \
Expand Down

0 comments on commit 3e6d0b6

Please sign in to comment.