2021-04-13 06:15:38 -07:00
|
|
|
FROM mcr.microsoft.com/dotnet/sdk:5.0
|
2018-07-31 17:22:27 +02:00
|
|
|
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 ["Services/Basket/Basket.API/Basket.API.csproj", "Services/Basket/Basket.API/"]
|
2020-12-28 16:54:35 +01:00
|
|
|
COPY ["NuGet.config", "NuGet.config"]
|
2018-07-31 17:22:27 +02:00
|
|
|
|
2019-08-28 14:11:29 +02:00
|
|
|
RUN dotnet restore Services/Basket/Basket.API/Basket.API.csproj -nowarn:msb3202,nu1503
|
2018-07-31 17:22:27 +02:00
|
|
|
COPY . .
|
2019-08-28 14:11:29 +02:00
|
|
|
WORKDIR /src/Services/Basket/Basket.API
|
2020-12-28 20:57:32 +01:00
|
|
|
RUN dotnet build -c $BUILD_CONFIGURATION
|
2018-07-31 17:22:27 +02:00
|
|
|
|
2019-02-25 13:26:31 +01:00
|
|
|
ENTRYPOINT ["dotnet", "run", "--no-build", "--no-launch-profile", "-c", "$BUILD_CONFIGURATION", "--"]
|