diff --git a/Dockerfile-ytdlp b/Dockerfile-ytdlp new file mode 100644 index 0000000..a4bdefa --- /dev/null +++ b/Dockerfile-ytdlp @@ -0,0 +1,14 @@ +# This is a template to be used by GoReleaser. +# See docs for details: https://goreleaser.com/customization/docker/ + +FROM alpine:3.10 +WORKDIR /app + +RUN wget -O /usr/bin/youtube-dl https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp && \ + chmod +x /usr/bin/youtube-dl && \ + apk --no-cache add ca-certificates python3 py3-pip ffmpeg tzdata +COPY podsync /app/podsync + + +ENTRYPOINT ["/app/podsync"] +CMD ["--no-banner"] diff --git a/Makefile b/Makefile index ae2edfb..8025cd7 100644 --- a/Makefile +++ b/Makefile @@ -19,6 +19,10 @@ docker: docker build -t $(TAG) . docker push $(TAG) +# Also build the Docker image with yt-dlp + docker build -t $(TAG)-ytdlp -f Dockerfile-ytdlp . + docker push $(TAG)-ytdlp + # # Run unit tests #