add dockerfile

This commit is contained in:
li494391537 2021-06-04 18:19:54 +08:00
parent bd3fa9edef
commit 0b2d6d3ca2

10
Dockerfile Normal file
View File

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