BililiveRecorder/Dockerfile

13 lines
378 B
Docker
Raw Normal View History

2022-04-05 12:37:42 +08:00
FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine
2021-06-04 18:19:54 +08:00
COPY . /src
RUN cd /src/BililiveRecorder.Cli && dotnet build -o /output -c Release
2022-04-05 12:37:42 +08:00
FROM mcr.microsoft.com/dotnet/aspnet:6.0-alpine
RUN apk add --no-cache tzdata
ENV TZ=Asia/Shanghai
2021-06-04 18:19:54 +08:00
WORKDIR /app
VOLUME [ "/rec" ]
COPY --from=0 /output /app
2021-06-04 18:19:54 +08:00
ENTRYPOINT [ "/app/BililiveRecorder.Cli" ]
CMD [ "run", "--bind", "http://*:2356", "/rec" ]