upgrade docker image to dotnet 6

This commit is contained in:
GeekTR 2022-04-05 12:37:42 +08:00 committed by Genteure
parent dee06f7579
commit 75c2ab9d45
2 changed files with 3 additions and 3 deletions

View File

@ -1,8 +1,8 @@
FROM mcr.microsoft.com/dotnet/sdk:5.0-alpine FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine
COPY . /src COPY . /src
RUN cd /src/BililiveRecorder.Cli && dotnet build -o /output -c Release RUN cd /src/BililiveRecorder.Cli && dotnet build -o /output -c Release
FROM mcr.microsoft.com/dotnet/runtime:5.0-alpine FROM mcr.microsoft.com/dotnet/aspnet:6.0-alpine
RUN apk add --no-cache tzdata RUN apk add --no-cache tzdata
ENV TZ=Asia/Shanghai ENV TZ=Asia/Shanghai
COPY --from=0 /output /app COPY --from=0 /output /app

View File

@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/runtime:5.0 FROM mcr.microsoft.com/dotnet/aspnet:6.0-alpine
ENV TZ=Asia/Shanghai ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
COPY ./BililiveRecorder.Cli/bin/docker_out /app COPY ./BililiveRecorder.Cli/bin/docker_out /app