mirror of
https://github.com/headporter81/DiscordDownloaderBot.git
synced 2026-12-06 07:41:10 +09:00
yt-dlp는 쿠키 로그인 시 인스타 사진 항목을 빈 결과로 버려서 사진을 받지 못함. 사진 모드(2타)만 gallery-dl로 바꾸고, 영상은 기존대로 yt-dlp 사용. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
99029064d3
commit
2ad90c3872
2 files changed
+17
-22
No files matched your search
+5
-4
@@ -7,12 +7,13 @@ RUN mvn -q -DskipTests package
|
||||
|
||||
FROM eclipse-temurin:17-jre
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends ffmpeg python3 curl ca-certificates \
|
||||
&& apt-get install -y --no-install-recommends ffmpeg python3 python3-pip curl ca-certificates \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& curl -fsSL https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp \
|
||||
&& chmod +x /usr/local/bin/yt-dlp
|
||||
&& chmod +x /usr/local/bin/yt-dlp \
|
||||
&& pip3 install --no-cache-dir --break-system-packages gallery-dl
|
||||
WORKDIR /app
|
||||
COPY --from=build /app/target/DiscordDownloaderBot-1.0.jar bot.jar
|
||||
ENV DOWNLOAD_DIR=/downloads COOKIES_PATH=/config/cookies.txt
|
||||
# 인스타가 자주 바뀌어서 기동 시마다 yt-dlp 최신화 (실패해도 기동은 계속)
|
||||
CMD ["sh", "-c", "yt-dlp -U || true; exec java -jar bot.jar"]
|
||||
# 인스타가 자주 바뀌어서 기동 시마다 yt-dlp·gallery-dl 최신화 (실패해도 기동은 계속)
|
||||
CMD ["sh", "-c", "yt-dlp -U || true; pip3 install -q -U --break-system-packages gallery-dl || true; exec java -jar bot.jar"]
|
||||
Reference in new issue
Block a user