docker: 更新 dockerfile

This commit is contained in:
Argo Zhang 2020-11-20 10:21:08 +08:00
parent 1c0e5f05d5
commit e800937321
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
1 changed files with 2 additions and 2 deletions

View File

@ -1,11 +1,11 @@
#Depending on the operating system of the host machines(s) that will build or run the containers, the image specified in the FROM statement may need to be changed.
#For more information, please see https://aka.ms/containercompat
FROM microsoft/dotnet:3.1-aspnetcore-runtime-nanoserver-1903 AS base
FROM mcr.microsoft.com/dotnet/runtime:5.0 AS base
WORKDIR /app
EXPOSE 80
FROM microsoft/dotnet:3.1-sdk-nanoserver-1903 AS build
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
WORKDIR /src
COPY . .