This commit is contained in:
2026-01-25 23:29:04 +08:00
parent 895f6e4bd0
commit 27e7499ad2
8 changed files with 40 additions and 129 deletions

View File

@@ -1,11 +1,12 @@
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS prepare
ARG REPO=github.com/frg2089/BiliLive.Observer TARGET_VER=0.0.9
# ADD https://$REPO/releases/download/v$TARGET_VER/BiliLive.Observer.zip /mnt/
ADD https://$REPO/releases/latest/download/BiliLive.Observer.zip /mnt/
ADD https://$REPO/releases/download/v$TARGET_VER/BiliLive.Observer.zip /mnt/
# he has updated to dotnet 10 while I'm lazy to apply since direct run works fine
# ADD https://$REPO/releases/latest/download/BiliLive.Observer.zip /mnt/
RUN apt update && apt install -y unzip && unzip -o /mnt/BiliLive.Observer.zip -d /package
FROM mcr.microsoft.com/dotnet/aspnet:9.0
COPY --from=prepare /package /opt/obs-bililive
# ENV ASPNETCORE_URLS=http://localhost:23333
WORKDIR /opt/obs-bililive
ENTRYPOINT ["dotnet", "./BiliLive.Service.dll", "--urls", "http://0.0.0.0:5000"]
ENTRYPOINT ["dotnet", "./BiliLive.Service.dll"]