Skip to content

Instantly share code, notes, and snippets.

@valkjsaaa
Last active March 31, 2021 07:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save valkjsaaa/dc130112144992da43210923fd1e0747 to your computer and use it in GitHub Desktop.
Save valkjsaaa/dc130112144992da43210923fd1e0747 to your computer and use it in GitHub Desktop.
bilibili-reocrder
# Auto bilibili live recording server
#
# VERSION 0.0.1
FROM nvidia/cuda:11.0-devel-ubuntu20.04
ENV TZ=Asia/Shanghai
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y wget git apt-transport-https software-properties-common
RUN wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
RUN dpkg -i packages-microsoft-prod.deb
RUN add-apt-repository universe
RUN apt-get update && apt-get install -y dotnet-sdk-3.1 powershell
RUN ln -s /usr/bin/pwsh /usr/bin/powershell
RUN git clone https://github.com/valkjsaaa/BililiveRecorder.git
WORKDIR "/BililiveRecorder"
RUN git checkout f0192a16a7b92df652eec40ec2fbd9485f2d9b5c
RUN dotnet build -c Release; exit 0
CMD /BililiveRecorder/BililiveRecorder.Cli/bin/Release/netcoreapp3.1/BililiveRecorder.Cli run /storage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment