diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..140ed5c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM mcr.microsoft.com/dotnet/sdk:5.0 +COPY . /src +RUN cd /src/BililiveRecorder.Cli && dotnet build -o /output -c Release + +FROM mcr.microsoft.com/dotnet/runtime:5.0 +COPY --from=0 /output /app +VOLUME [ "/rec" ] +WORKDIR /app +ENTRYPOINT [ "/app/BililiveRecorder.Cli" ] +CMD [ "-h" ] \ No newline at end of file