2018-12-11 13:51:58 +01:00
|
|
|
FROM microsoft/dotnet:2.2.0-aspnetcore-runtime AS base
|
2018-01-18 17:29:23 +01:00
|
|
|
WORKDIR /app
|
|
|
|
EXPOSE 80
|
|
|
|
|
2018-12-11 13:51:58 +01:00
|
|
|
FROM microsoft/dotnet:2.2.100-sdk AS build
|
2018-01-18 17:29:23 +01:00
|
|
|
WORKDIR /src
|
|
|
|
COPY . .
|
|
|
|
WORKDIR /src/src/Services/Ordering/Ordering.BackgroundTasks
|
2018-05-16 14:45:15 +02:00
|
|
|
RUN dotnet restore -nowarn:msb3202,nu1503
|
2018-01-18 17:29:23 +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", "Ordering.BackgroundTasks.dll"]
|