29 lines
702 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
2017-06-01 10:10:00 +02: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/Marketing/Marketing.API
2019-04-13 08:23:40 +01:00
RUN dotnet publish -c Release -o /app
2018-11-20 10:58:12 +01:00
FROM build as functionaltest
WORKDIR /src/Services/Marketing/Marketing.FunctionalTests
2018-11-20 10:58:12 +01:00
FROM build AS publish
FROM base AS final
WORKDIR /app
COPY --from=publish /app .
2017-06-01 10:10:00 +02:00
ENTRYPOINT ["dotnet", "Marketing.API.dll"]