2024-11-22 22:52:28 +08:00
|
|
|
FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine
|
2021-06-04 18:19:54 +08:00
|
|
|
COPY . /src
|
|
|
|
RUN cd /src/BililiveRecorder.Cli && dotnet build -o /output -c Release
|
|
|
|
|
2024-11-22 22:52:28 +08:00
|
|
|
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine
|
2021-06-23 17:59:59 +08:00
|
|
|
RUN apk add --no-cache tzdata
|
|
|
|
ENV TZ=Asia/Shanghai
|
2021-06-04 18:19:54 +08:00
|
|
|
WORKDIR /app
|
2022-05-19 18:11:03 +08:00
|
|
|
VOLUME [ "/rec" ]
|
|
|
|
COPY --from=0 /output /app
|
2021-06-04 18:19:54 +08:00
|
|
|
ENTRYPOINT [ "/app/BililiveRecorder.Cli" ]
|
2022-06-23 17:46:17 +08:00
|
|
|
EXPOSE 2356/tcp
|
2022-05-19 18:11:03 +08:00
|
|
|
CMD [ "run", "--bind", "http://*:2356", "/rec" ]
|