32 lines
757 B
Docker
Raw Normal View History

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
EXPOSE 80
2019-07-22 16:16:57 +02:00
FROM mcr.microsoft.com/dotnet/core/sdk:3.0-buster AS build
WORKDIR /src
2019-04-12 19:45:45 +01:00
COPY scripts scripts/
2019-04-12 19:45:45 +01: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
COPY . .
WORKDIR /src/Services/Basket/Basket.API
2019-04-13 08:23:40 +01:00
RUN dotnet publish -c Release -o /app
2018-11-29 10:08:34 +01:00
FROM build as unittest
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
WORKDIR /src/Services/Basket/Basket.FunctionalTests
2019-04-12 19:45:45 +01:00
FROM build AS publish
FROM base AS final
WORKDIR /app
COPY --from=publish /app .
ENTRYPOINT ["dotnet", "Basket.API.dll"]