1
0
mirror of https://github.com/hanxi/xiaomusic.git synced 2026-05-20 11:15:46 +08:00

add docker

This commit is contained in:
涵曦
2023-10-15 10:58:53 +08:00
parent 454e0ac052
commit e91e203fb0
7 changed files with 188 additions and 7 deletions

View File

@@ -3,6 +3,15 @@
# yt-dlp 依赖 ffmpeg
# https://github.com/yt-dlp/yt-dlp#dependencies
wget https://github.com/yt-dlp/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-linux64-gpl.tar.xz
tar -xvJf ffmpeg-master-latest-linux64-gpl.tar.xz
mv ffmpeg-master-latest-linux64-gpl ffmpeg
# 判断系统架构
arch=$(arch)
pkg=ffmpeg-master-latest-linuxarm64-gpl
if [[ "${arch}" == "x86_64" ]]; then
pkg=ffmpeg-master-latest-linux64-gpl
fi
#export ALL_PROXY=http://192.168.2.5:8080
wget https://github.com/yt-dlp/FFmpeg-Builds/releases/download/latest/$pkg.tar.xz
tar -xvJf $pkg.tar.xz
mv $pkg ffmpeg