chore: 移除 Linux.Dockerfile
This commit is contained in:
parent
d31b056292
commit
1f2865807a
|
@ -1,7 +1,7 @@
|
||||||
#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 mcr.microsoft.com/dotnet/runtime:5.0 AS base
|
FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS base
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
||||||
|
|
|
@ -1,19 +0,0 @@
|
||||||
#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 mcr.microsoft.com/dotnet/runtime:5.0 AS base
|
|
||||||
WORKDIR /app
|
|
||||||
EXPOSE 80
|
|
||||||
|
|
||||||
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
|
|
||||||
WORKDIR /src
|
|
||||||
COPY . .
|
|
||||||
|
|
||||||
WORKDIR "src/admin/Bootstrap.Admin"
|
|
||||||
FROM build AS publish
|
|
||||||
RUN dotnet publish -c Release -o /app
|
|
||||||
|
|
||||||
FROM base AS final
|
|
||||||
WORKDIR /app
|
|
||||||
COPY --from=publish /app .
|
|
||||||
ENTRYPOINT ["dotnet", "Bootstrap.Admin.dll"]
|
|
Loading…
Reference in New Issue