diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d3f5205 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine AS base +WORKDIR /app + +RUN apk add --no-cache \ + icu-libs \ + zlib-dev \ + bash \ + curl \ + ffmpeg + +COPY . /app + +EXPOSE 8080 + +RUN chmod +x /app/drmdtool +RUN chmod +x /app/nre + +ENV BASE_DIR=/app/Videos +ENV FORMAT=mkv +ENV TEMP_BASE_DIR=/app/tmp +ENV NRE_PATH=/app/nre + +ENTRYPOINT ["/app/drmdtool"] + diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..31859ed --- /dev/null +++ b/config.toml @@ -0,0 +1,7 @@ +BaseDir = "/app/Videos/" +Format = "${OUTPUT_FORMAT:-mkv}" +TempBaseDir = "/app/tmp/" + +[N_m3u8DLRE] +Path = "/app/nre" + diff --git a/drmdtool b/drmdtool new file mode 100755 index 0000000..4c72ab6 Binary files /dev/null and b/drmdtool differ diff --git a/nre b/nre new file mode 100755 index 0000000..a5bea62 Binary files /dev/null and b/nre differ