kirkleon 4 жил өмнө
parent
commit
6c1a222c34
1 өөрчлөгдсөн 10 нэмэгдсэн , 7 устгасан
  1. 10 7
      Dockerfile

+ 10 - 7
Dockerfile

@@ -3,13 +3,16 @@ FROM mcr.microsoft.com/dotnet/core/sdk:3.1
 LABEL maintainer="Kirk Trombley <ktrom3894@gmail.com>"
 
 RUN apt update && apt install --yes libopus-dev ffmpeg
+  
+WORKDIR /audiobot
+  
+RUN curl https://splamy.de/api/nightly/ts3ab/master/download -o ./audiobot.zip \
+  && unzip audiobot.zip \
+  && rm audiobot.zip
+  
+RUN curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl \
+  && chmod a+rx /usr/local/bin/youtube-dl
 
 WORKDIR /data
 
-COPY pull/youtube-dl /usr/local/bin/
-
-RUN chmod a+rx /usr/local/bin/youtube-dl
-
-COPY pull/audiobot/* /audiobot/
-
-CMD youtube-dl -U && dotnet /audiobot/TS3AudioBot.dll
+CMD dotnet /audiobot/TS3AudioBot.dll