mirror of https://github.com/abpframework/abp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
479 B
21 lines
479 B
7 years ago
|
FROM microsoft/aspnetcore:2.0 AS base
|
||
|
WORKDIR /app
|
||
|
EXPOSE 80
|
||
|
|
||
|
FROM microsoft/aspnetcore-build:2.0 AS build
|
||
|
WORKDIR /src
|
||
|
COPY *.sln ./
|
||
|
COPY MicroserviceDemo.Web/MicroserviceDemo.Web.csproj MicroserviceDemo.Web/
|
||
|
RUN dotnet restore
|
||
|
COPY . .
|
||
|
WORKDIR /src/MicroserviceDemo.Web
|
||
|
RUN dotnet build -c Release -o /app
|
||
|
|
||
|
FROM build AS publish
|
||
|
RUN dotnet publish -c Release -o /app
|
||
|
|
||
|
FROM base AS final
|
||
|
WORKDIR /app
|
||
|
COPY --from=publish /app .
|
||
|
ENTRYPOINT ["dotnet", "MicroserviceDemo.Web.dll"]
|