|
@@ -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
|