mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-11-16 11:42:22 +08:00
add dockerfile
This commit is contained in:
parent
bd3fa9edef
commit
0b2d6d3ca2
10
Dockerfile
Normal file
10
Dockerfile
Normal 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" ]
|
Loading…
Reference in New Issue
Block a user