17 lines
793 B
Docker
17 lines
793 B
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 ["src/ApiGateways/Web.Bff.Shopping/aggregator/Web.Shopping.HttpAggregator.csproj", "src/ApiGateways/Web.Bff.Shopping/aggregator/"]
|
|
COPY ["src/BuildingBlocks/Devspaces.Support/Devspaces.Support.csproj", "src/BuildingBlocks/Devspaces.Support/"]
|
|
COPY ["src/NuGet.config", "src/NuGet.config"]
|
|
|
|
RUN dotnet restore src/ApiGateways/Web.Bff.Shopping/aggregator/Web.Shopping.HttpAggregator.csproj -nowarn:msb3202,nu1503
|
|
COPY . .
|
|
WORKDIR "/src/src/ApiGateways/Web.Bff.Shopping/aggregator"
|
|
RUN dotnet build -c $BUILD_CONFIGURATION
|
|
|
|
CMD ["dotnet", "run", "--no-build", "--no-launch-profile", "-c", "$BUILD_CONFIGURATION", "--"]] |