23 lines
1.4 KiB
Docker
23 lines
1.4 KiB
Docker
FROM mcr.microsoft.com/dotnet/sdk:5.0
|
|
ARG BUILD_CONFIGURATION=Debug
|
|
ENV ASPNETCORE_ENVIRONMENT=Development
|
|
ENV DOTNET_USE_POLLING_FILE_WATCHER=true
|
|
EXPOSE 80
|
|
|
|
WORKDIR /src
|
|
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 ["BuildingBlocks/WebHostCustomization/WebHost.Customization/WebHost.Customization.csproj", "BuildingBlocks/WebHostCustomization/WebHost.Customization/"]
|
|
COPY ["Services/Ordering/Ordering.Domain/Ordering.Domain.csproj", "Services/Ordering/Ordering.Domain/"]
|
|
COPY ["Services/Ordering/Ordering.Infrastructure/Ordering.Infrastructure.csproj", "Services/Ordering/Ordering.Infrastructure/"]
|
|
COPY ["Services/Ordering/Ordering.API/Ordering.API.csproj", "Services/Ordering/Ordering.API/"]
|
|
COPY ["NuGet.config", "NuGet.config"]
|
|
|
|
RUN dotnet restore Services/Ordering/Ordering.API/Ordering.API.csproj
|
|
COPY . .
|
|
WORKDIR /src/Services/Ordering/Ordering.API
|
|
RUN dotnet build -c $BUILD_CONFIGURATION
|
|
|
|
ENTRYPOINT ["dotnet", "run", "--no-build", "--no-launch-profile", "-c", "$BUILD_CONFIGURATION", "--"] |