migrate into net6.0
continuous-integration/drone/push Build is passing Details

master
ceruIean 2022-02-23 17:20:32 +08:00
parent 772525a9b6
commit 8467200774
1 changed files with 2 additions and 2 deletions

View File

@ -1,11 +1,11 @@
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging. #See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS base FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
WORKDIR /app WORKDIR /app
EXPOSE 80 EXPOSE 80
EXPOSE 443 EXPOSE 443
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /src WORKDIR /src
COPY ["2021-backend.csproj", ""] COPY ["2021-backend.csproj", ""]
RUN dotnet restore "./2021-backend.csproj" RUN dotnet restore "./2021-backend.csproj"