Assignment for Location Calculation
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
684 B

  1. #See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
  2. FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS base
  3. WORKDIR /app
  4. EXPOSE 80
  5. EXPOSE 443
  6. FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
  7. WORKDIR /src
  8. COPY ["POCDistance/POCDistance.csproj", "POCDistance/"]
  9. RUN dotnet restore "POCDistance/POCDistance.csproj"
  10. COPY . .
  11. WORKDIR "/src/POCDistance"
  12. RUN dotnet build "POCDistance.csproj" -c Release -o /app/build
  13. FROM build AS publish
  14. RUN dotnet publish "POCDistance.csproj" -c Release -o /app/publish
  15. FROM base AS final
  16. WORKDIR /app
  17. COPY --from=publish /app/publish .
  18. ENTRYPOINT ["dotnet", "POCDistance.dll"]