2022-08-13 18:21:23 +03:00
|
|
|
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
|
|
|
|
WORKDIR /app
|
|
|
|
#EXPOSE 80
|
|
|
|
#EXPOSE 443
|
|
|
|
|
|
|
|
|
|
|
|
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
|
|
|
|
WORKDIR /src
|
|
|
|
|
2022-08-22 05:13:53 +03:00
|
|
|
COPY ["BlueWest.Data.Capital/BlueWest.Data.Capital.csproj", "BlueWest.Data.Capital/"]
|
|
|
|
RUN dotnet restore "BlueWest.Data.Capital/BlueWest.Data.Capital.csproj"
|
|
|
|
|
|
|
|
|
|
|
|
COPY ["BlueWest/BlueWest.csproj", "BlueWest/"]
|
|
|
|
RUN dotnet restore "BlueWest/BlueWest.csproj"
|
|
|
|
|
|
|
|
|
2022-09-17 22:13:35 +03:00
|
|
|
COPY ["BlueWest.Data.Application/BlueWest.Data.Application.csproj", "BlueWest.Data.Application/"]
|
|
|
|
RUN dotnet restore "BlueWest.Data.Application/BlueWest.Data.Application.csproj"
|
2022-08-22 05:13:53 +03:00
|
|
|
|
|
|
|
|
2022-08-13 18:21:23 +03:00
|
|
|
COPY ["BlueWest.Api/BlueWest.Api.csproj", "BlueWest.Api/"]
|
2022-08-19 06:18:50 +03:00
|
|
|
RUN dotnet restore "BlueWest.Api/BlueWest.Api.csproj"
|
2022-08-22 05:13:53 +03:00
|
|
|
|
|
|
|
|
|
|
|
COPY ["include/BlueWest.MapTo/src/BlueWest.MapTo/BlueWest.MapTo.csproj", "include/BlueWest.MapTo/src/BlueWest.MapTo/"]
|
|
|
|
RUN dotnet restore "include/BlueWest.MapTo/src/BlueWest.MapTo/BlueWest.MapTo.csproj"
|
|
|
|
|
2022-09-06 01:37:52 +03:00
|
|
|
|
|
|
|
COPY ["include/BlueWest.EfMethods/src/BlueWest.EfMethods/BlueWest.EfMethods.csproj", "include/BlueWest.EfMethods/src/BlueWest.EfMethods/"]
|
|
|
|
RUN dotnet restore "include/BlueWest.EfMethods/src/BlueWest.EfMethods/BlueWest.EfMethods.csproj"
|
|
|
|
|
|
|
|
|
2022-08-22 05:13:53 +03:00
|
|
|
COPY ["include/Math-Expression-Evaluator/SimpleExpressionEvaluator/SimpleExpressionEvaluator.csproj", "include/Math-Expression-Evaluator/SimpleExpressionEvaluator/"]
|
|
|
|
RUN dotnet restore "include/Math-Expression-Evaluator/SimpleExpressionEvaluator/SimpleExpressionEvaluator.csproj"
|
|
|
|
|
|
|
|
|
2022-08-13 18:21:23 +03:00
|
|
|
COPY [".", "."]
|
|
|
|
|
|
|
|
RUN dotnet build "BlueWest.Api/BlueWest.Api.csproj" -c Release -o /app/build
|
|
|
|
|
|
|
|
FROM build AS publish
|
|
|
|
RUN dotnet publish "BlueWest.Api/BlueWest.Api.csproj" -c Release -o /app/publish --self-contained false
|
|
|
|
|
|
|
|
FROM base AS final
|
|
|
|
WORKDIR /app
|
|
|
|
COPY --from=publish /app/publish .
|
2022-08-13 20:15:43 +03:00
|
|
|
ENV ASPNETCORE_URLS http://0.0.0.0:80
|
2022-08-13 18:21:23 +03:00
|
|
|
WORKDIR /app
|
|
|
|
ENTRYPOINT ["dotnet", "BlueWest.Api.dll" ]
|