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.
abp/samples/MicroserviceDemo/MicroserviceDemo.Web/Dockerfile

21 lines
479 B

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"]