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.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

Dockerfile 871B

1234567891011121314151617181920212223
  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/runtime: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 ["IdentityProvider/IdentityProvider.csproj", "IdentityProvider/"]
  8. COPY ["GrpcShared/GrpcShared.csproj", "GrpcShared/"]
  9. COPY ["SpotifyService/SpotifyService.csproj", "SpotifyService/"]
  10. RUN dotnet restore "SpotifyWorker/SpotifyWorker.csproj"
  11. COPY . .
  12. WORKDIR "/src/SpotifyWorker"
  13. RUN dotnet build "SpotifyWorker.csproj" -c Release -o /app/build
  14. FROM build AS publish
  15. RUN dotnet publish "SpotifyWorker.csproj" -c Release -o /app/publish
  16. FROM base AS final
  17. WORKDIR /app
  18. COPY --from=publish /app/publish .
  19. ENTRYPOINT ["dotnet", "SpotifyWorker.dll"]