2019-03-21 16:38:01 +01:00
|
|
|
FROM mcr.microsoft.com/dotnet/core/aspnet:2.2 AS base
|
2018-02-27 14:32:25 +01:00
|
|
|
WORKDIR /app
|
|
|
|
EXPOSE 80
|
|
|
|
|
2019-03-21 16:38:01 +01:00
|
|
|
FROM mcr.microsoft.com/dotnet/core/sdk:2.2 AS build
|
2018-02-27 14:32:25 +01:00
|
|
|
WORKDIR /src
|
|
|
|
COPY . .
|
2018-02-28 11:30:25 +01:00
|
|
|
WORKDIR /src/src/ApiGateways/Web.Bff.Shopping/aggregator
|
2018-05-16 14:45:15 +02:00
|
|
|
RUN dotnet restore -nowarn:msb3202,nu1503
|
2018-02-27 14:32:25 +01: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 .
|
|
|
|
ENTRYPOINT ["dotnet", "Web.Shopping.HttpAggregator.dll"]
|