Skip to content

Commit

Permalink
fix dockerfile dotnet version
Browse files Browse the repository at this point in the history
  • Loading branch information
oujun committed Jan 23, 2024
1 parent bacf4ae commit 23b96b1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Bilibili.Live.Checker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#See https://aka.ms/customizecontainer to learn how to customize your debug container and how Visual Studio uses this Dockerfile to build your images for faster debugging.
FROM mcr.microsoft.com/dotnet/runtime:6.0 AS base
FROM mcr.microsoft.com/dotnet/runtime:8.0 AS base
WORKDIR /app

ENV wxpusher_APPTOKEN=
Expand All @@ -13,9 +13,11 @@ RUN wget https://chromedriver.storage.googleapis.com/120.0/chromedriver_linux64.
RUN unzip chromedriver_linux64.zip -d /usr/local/bin
RUN rm chromedriver_linux64.zip

FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
WORKDIR /src
COPY ["Bilibili.Live.Checker/Bilibili.Live.Checker.csproj", "Bilibili.Live.Checker/"]
RUN dotnet --info
RUN dotnet nuget locals all --clear
RUN dotnet restore "Bilibili.Live.Checker/Bilibili.Live.Checker.csproj"
COPY . .
WORKDIR "/src/Bilibili.Live.Checker"
Expand Down

0 comments on commit 23b96b1

Please sign in to comment.