Files
agserver.svc/bililive.observer/Dockerfile
2025-11-06 01:58:02 +08:00

12 lines
596 B
Docker

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