Blazor & WASM in combination to get statistics from Spotify API for performing the song analysis. With separate microservices for auth, Spotify, user data tracking, and application, connected through gRPC with Polly.
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 885B

12345678910111213141516171819202122232425262728293031323334353637
  1. FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
  2. WORKDIR /app
  3. EXPOSE 80
  4. FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
  5. WORKDIR /src
  6. COPY NemAn.sln ./
  7. COPY SpotifyWorker/*.csproj ./SpotifyWorker/
  8. COPY SpotifyService/*.csproj ./SpotifyService/
  9. COPY GrpcShared/*.csproj ./GrpcShared/
  10. COPY IdentityProvider/*.csproj ./IdentityProvider/
  11. COPY NemAnBlazor/*.csproj ./NemAnBlazor/
  12. RUN dotnet restore
  13. COPY . .
  14. WORKDIR /src/SpotifyWorker
  15. RUN dotnet build -c Release -o /app
  16. WORKDIR /src/SpotifyService
  17. RUN dotnet build -c Release -o /app
  18. WORKDIR /src/GrpcShared
  19. RUN dotnet build -c Release -o /app
  20. WORKDIR /src/IdentityProvider
  21. RUN dotnet build -c Release -o /app
  22. WORKDIR /src/NemAnBlazor
  23. RUN dotnet build -c Release -o /app
  24. FROM build AS publish
  25. RUN dotnet publish -c Release -o /app
  26. FROM base AS final
  27. WORKDIR /app
  28. COPY --from=publish /app .
  29. ENTRYPOINT ["dotnet", "SpotifyService.dll"]