mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-11-16 11:42:22 +08:00
upgrade docker image to dotnet 6
This commit is contained in:
parent
dee06f7579
commit
75c2ab9d45
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user