Files
BBDown/Dockerfile
AchanYao 7c48a078c5 BBDown: Docker Support, Webhook Enhancements & Code Cleanup (#997)
* feat: add Dockerfile and .dockerignore for containerization

* fix: update nullable reference types in Parser and HTTPUtil

* feat: enhance task management with callback webhook support and save paths

* doc: correct JSON data formatting in API documentation
2025-03-25 22:14:48 +08:00

22 lines
394 B
Docker

FROM mcr.microsoft.com/dotnet/sdk:9.0 AS builder
WORKDIR /app
COPY . .
RUN dotnet build -c Release
FROM mcr.microsoft.com/dotnet/aspnet:9.0
WORKDIR /app
COPY --from=builder /app/BBDown/bin/Release/net9.0 .
EXPOSE 23333
# install ffmpeg
RUN apt-get update && \
apt-get install -y ffmpeg && \
chmod +x /app/BBDown
ENTRYPOINT ["/app/BBDown", "serve", "-l", "http://0.0.0.0:23333"]