docker: 更新 dockerfile
This commit is contained in:
parent
1c0e5f05d5
commit
e800937321
|
@ -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.
|
#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
|
#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
|
WORKDIR /app
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
||||||
FROM microsoft/dotnet:3.1-sdk-nanoserver-1903 AS build
|
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue