Fixing docker build issues
This commit is contained in:
@@ -32,12 +32,10 @@ WORKDIR /packages
|
||||
ARG TARGETPLATFORM
|
||||
|
||||
RUN apt-get update && apt-get install -y curl tar xz-utils && \
|
||||
if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \
|
||||
echo "Unsupported platform: amd64" && false; \
|
||||
elif [ "$TARGETPLATFORM" = "linux/arm/v7" ]; then \
|
||||
if [ "$TARGETPLATFORM" = "linux/arm/v7" ]; then \
|
||||
curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_linux_armv7l > yt-dlp && \
|
||||
chmod +x yt-dlp; \
|
||||
elif [ "$TARGETPLATFORM" = "linux/aarch64" ]; then \
|
||||
elif [ "$TARGETPLATFORM" = "linux/aarch64" ] | [ "$TARGETPLATFORM" = "linux/amd64" ]; then \
|
||||
curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_linux_aarch64 > yt-dlp && \
|
||||
chmod +x yt-dlp; \
|
||||
elif [ "$TARGETPLATFORM" = "linux/arm64" ]; then \
|
||||
|
||||
Reference in New Issue
Block a user