2019-02-25 13:26:31 +01:00
|
|
|
FROM microsoft/dotnet:2.2-sdk
|
|
|
|
ARG BUILD_CONFIGURATION=Debug
|
2018-07-17 11:04:29 +02:00
|
|
|
ENV ASPNETCORE_ENVIRONMENT=Development
|
|
|
|
ENV DOTNET_USE_POLLING_FILE_WATCHER=true
|
|
|
|
EXPOSE 80
|
|
|
|
|
|
|
|
WORKDIR /src
|
2019-02-25 13:26:31 +01:00
|
|
|
|
2018-07-17 11:04:29 +02:00
|
|
|
COPY ["src/BuildingBlocks/EventBus/EventBus/EventBus.csproj", "src/BuildingBlocks/EventBus/EventBus/"]
|
|
|
|
COPY ["src/BuildingBlocks/EventBus/EventBusRabbitMQ/EventBusRabbitMQ.csproj", "src/BuildingBlocks/EventBus/EventBusRabbitMQ/"]
|
|
|
|
COPY ["src/BuildingBlocks/EventBus/EventBusServiceBus/EventBusServiceBus.csproj", "src/BuildingBlocks/EventBus/EventBusServiceBus/"]
|
|
|
|
COPY ["src/BuildingBlocks/EventBus/IntegrationEventLogEF/IntegrationEventLogEF.csproj", "src/BuildingBlocks/EventBus/IntegrationEventLogEF/"]
|
|
|
|
COPY ["src/BuildingBlocks/WebHostCustomization/WebHost.Customization/WebHost.Customization.csproj", "src/BuildingBlocks/WebHostCustomization/WebHost.Customization/"]
|
|
|
|
COPY ["src/Services/Catalog/Catalog.API/Catalog.API.csproj", "src/Services/Catalog/Catalog.API/"]
|
|
|
|
|
2018-07-31 17:22:27 +02:00
|
|
|
RUN dotnet restore src/Services/Catalog/Catalog.API/Catalog.API.csproj -nowarn:msb3202,nu1503
|
2018-07-17 11:04:29 +02:00
|
|
|
COPY . .
|
|
|
|
WORKDIR "/src/src/Services/Catalog/Catalog.API"
|
2019-02-25 13:26:31 +01:00
|
|
|
RUN dotnet build --no-restore -c $BUILD_CONFIGURATION
|
2018-07-17 11:04:29 +02:00
|
|
|
|
2019-02-25 13:26:31 +01:00
|
|
|
ENTRYPOINT ["dotnet", "run", "--no-build", "--no-launch-profile", "-c", "$BUILD_CONFIGURATION", "--"]
|