mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-11-15 19:22:19 +08:00
13 lines
343 B
Docker
13 lines
343 B
Docker
FROM mcr.microsoft.com/dotnet/sdk:5.0-alpine
|
|
COPY . /src
|
|
RUN cd /src/BililiveRecorder.Cli && dotnet build -o /output -c Release
|
|
|
|
FROM mcr.microsoft.com/dotnet/runtime:5.0-alpine
|
|
RUN apk add --no-cache tzdata
|
|
ENV TZ=Asia/Shanghai
|
|
COPY --from=0 /output /app
|
|
VOLUME [ "/rec" ]
|
|
WORKDIR /app
|
|
ENTRYPOINT [ "/app/BililiveRecorder.Cli" ]
|
|
CMD [ "-h" ]
|