2019-07-22 16:16:57 +02:00
|
|
|
FROM mcr.microsoft.com/dotnet/core/aspnet:3.0-buster-slim AS base
|
2016-10-17 20:10:18 -07:00
|
|
|
WORKDIR /app
|
2017-02-14 18:11:51 +01:00
|
|
|
EXPOSE 80
|
2017-11-27 13:48:31 -08:00
|
|
|
|
2019-07-22 16:16:57 +02:00
|
|
|
FROM mcr.microsoft.com/dotnet/core/sdk:3.0-buster AS build
|
2017-11-27 13:48:31 -08:00
|
|
|
WORKDIR /src
|
2019-04-12 19:45:45 +01:00
|
|
|
|
2019-04-22 18:10:53 +01:00
|
|
|
COPY scripts scripts/
|
2019-04-12 19:45:45 +01:00
|
|
|
|
2019-08-28 14:11:29 +02:00
|
|
|
COPY ApiGateways/*/*.csproj csproj-files/
|
|
|
|
COPY ApiGateways/*/*/*.csproj csproj-files/
|
|
|
|
COPY BuildingBlocks/*/*/*.csproj csproj-files/
|
|
|
|
COPY Services/*/*/*.csproj csproj-files/
|
|
|
|
COPY Web/*/*.csproj csproj-files/
|
2019-04-12 19:45:45 +01:00
|
|
|
|
2017-11-27 13:48:31 -08:00
|
|
|
COPY . .
|
2019-08-28 14:11:29 +02:00
|
|
|
WORKDIR /src/Services/Basket/Basket.API
|
2019-04-13 08:23:40 +01:00
|
|
|
RUN dotnet publish -c Release -o /app
|
2017-11-27 13:48:31 -08:00
|
|
|
|
2018-11-29 10:08:34 +01:00
|
|
|
FROM build as unittest
|
2019-08-28 14:11:29 +02:00
|
|
|
WORKDIR /src/Services/Basket/Basket.UnitTests
|
2018-11-20 10:58:12 +01:00
|
|
|
|
2019-04-12 19:45:45 +01:00
|
|
|
FROM build as functionaltest
|
2019-08-28 14:11:29 +02:00
|
|
|
WORKDIR /src/Services/Basket/Basket.FunctionalTests
|
2019-04-12 19:45:45 +01:00
|
|
|
|
2017-11-27 13:48:31 -08:00
|
|
|
FROM build AS publish
|
|
|
|
|
|
|
|
FROM base AS final
|
|
|
|
WORKDIR /app
|
|
|
|
COPY --from=publish /app .
|
2017-02-14 18:11:51 +01:00
|
|
|
ENTRYPOINT ["dotnet", "Basket.API.dll"]
|