20 lines
440 B
Docker
Raw Normal View History

2018-12-11 13:51:58 +01:00
FROM microsoft/dotnet:2.2.0-aspnetcore-runtime AS base
2017-03-23 19:10:55 +01:00
WORKDIR /app
EXPOSE 80
2018-12-11 13:51:58 +01:00
FROM microsoft/dotnet:2.2.100-sdk AS build
WORKDIR /src
COPY . .
2018-01-04 14:29:17 -08:00
WORKDIR /src/src/Web/WebStatus
RUN dotnet restore -nowarn:msb3202,nu1503
2018-01-04 14:29:17 -08:00
RUN dotnet build --no-restore -c Release -o /app
FROM build AS publish
RUN dotnet publish --no-restore -c Release -o /app
FROM base AS final
WORKDIR /app
COPY --from=publish /app .
2017-03-23 19:10:55 +01:00
ENTRYPOINT ["dotnet", "WebStatus.dll"]