Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

Dockerfile 868B

123456789101112131415161718192021222324
  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:6.0 AS base
  3. WORKDIR /app
  4. EXPOSE 80
  5. EXPOSE 443
  6. FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
  7. WORKDIR /src
  8. COPY ["SecureSharing/SecureSharing.csproj", "SecureSharing/"]
  9. COPY ["SecureSharing.Business/SecureSharing.Business.csproj", "SecureSharing.Business/"]
  10. COPY ["SecureSharing.Data/SecureSharing.Data.csproj", "SecureSharing.Data/"]
  11. RUN dotnet restore "SecureSharing/SecureSharing.csproj"
  12. COPY . .
  13. WORKDIR "/src/SecureSharing"
  14. RUN dotnet build "SecureSharing.csproj" -c Release -o /app/build
  15. FROM build AS publish
  16. RUN dotnet publish "SecureSharing.csproj" -c Release -o /app/publish
  17. FROM base AS final
  18. WORKDIR /app
  19. COPY --from=publish /app/publish .
  20. ENTRYPOINT ["dotnet", "SecureSharing.dll"]