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 946B

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. FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
  5. WORKDIR /src
  6. COPY ["SpotifyWorker/SpotifyWorker.csproj", "SpotifyWorker/"]
  7. COPY ["SpotifyService/SpotifyService.csproj", "SpotifyService/"]
  8. COPY ["GrpcShared/GrpcShared.csproj", "GrpcShared/"]
  9. COPY ["IdentityProvider/IdentityProvider.csproj", "IdentityProvider/"]
  10. COPY ["NemAnBlazor/NemAnBlazor.csproj", "NemAnBlazor/"]
  11. RUN dotnet restore "SpotifyWorker/SpotifyWorker.csproj"
  12. COPY . .
  13. WORKDIR "/src/SpotifyWorker"
  14. RUN dotnet build "SpotifyWorker.csproj" -c Release -o /app/build
  15. FROM build AS publish
  16. RUN dotnet publish "SpotifyWorker.csproj" -c Release -o /app/publish /p:UseAppHost=false
  17. FROM base AS final
  18. WORKDIR /app
  19. COPY --from=publish /app/publish .
  20. ENTRYPOINT ["dotnet", "SpotifyWorker.dll"]