mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-12-26 20:26:00 +08:00
453e63c651
* feat: upgrade target framework to .NET 8.0 * refactor: fix obsolete warnings * chore: update AutoMapper package to version 13.0.1 * chore: suppress warnings * feat: upgrade Docker images to .NET 8.0
14 lines
394 B
Docker
14 lines
394 B
Docker
FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine
|
|
COPY . /src
|
|
RUN cd /src/BililiveRecorder.Cli && dotnet build -o /output -c Release
|
|
|
|
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine
|
|
RUN apk add --no-cache tzdata
|
|
ENV TZ=Asia/Shanghai
|
|
WORKDIR /app
|
|
VOLUME [ "/rec" ]
|
|
COPY --from=0 /output /app
|
|
ENTRYPOINT [ "/app/BililiveRecorder.Cli" ]
|
|
EXPOSE 2356/tcp
|
|
CMD [ "run", "--bind", "http://*:2356", "/rec" ]
|