2019-02-25 16:29:55 +01:00
|
|
|
FROM microsoft/dotnet:2.2-sdk
|
|
|
|
ARG BUILD_CONFIGURATION=Debug
|
|
|
|
ENV ASPNETCORE_ENVIRONMENT=Development
|
|
|
|
ENV DOTNET_USE_POLLING_FILE_WATCHER=true
|
|
|
|
EXPOSE 80
|
|
|
|
|
|
|
|
WORKDIR /src
|
2019-08-28 14:11:29 +02:00
|
|
|
COPY ["BuildingBlocks/EventBus/EventBus/EventBus.csproj", "BuildingBlocks/EventBus/EventBus/"]
|
|
|
|
COPY ["BuildingBlocks/EventBus/EventBusRabbitMQ/EventBusRabbitMQ.csproj", "BuildingBlocks/EventBus/EventBusRabbitMQ/"]
|
|
|
|
COPY ["BuildingBlocks/EventBus/EventBusServiceBus/EventBusServiceBus.csproj", "BuildingBlocks/EventBus/EventBusServiceBus/"]
|
|
|
|
COPY ["BuildingBlocks/EventBus/IntegrationEventLogEF/IntegrationEventLogEF.csproj", "BuildingBlocks/EventBus/IntegrationEventLogEF/"]
|
|
|
|
COPY ["Services/Payment/Payment.API/Payment.API.csproj", "Services/Payment/Payment.API/"]
|
2019-02-25 16:29:55 +01:00
|
|
|
|
2019-08-28 14:11:29 +02:00
|
|
|
RUN dotnet restore Services/Payment/Payment.API/Payment.API.csproj
|
2019-02-25 16:29:55 +01:00
|
|
|
COPY . .
|
2019-08-28 14:11:29 +02:00
|
|
|
WORKDIR /src/Services/Payment/Payment.API
|
2019-02-25 16:29:55 +01:00
|
|
|
RUN dotnet build --no-restore -c $BUILD_CONFIGURATION
|
|
|
|
|
|
|
|
ENTRYPOINT ["dotnet", "run", "--no-build", "--no-launch-profile", "-c", "$BUILD_CONFIGURATION", "--"]
|