diff --git a/DeviceBridge/Startup.cs b/DeviceBridge/Startup.cs index 4d5cf7d..2de4c70 100644 --- a/DeviceBridge/Startup.cs +++ b/DeviceBridge/Startup.cs @@ -71,7 +71,7 @@ namespace DeviceBridge services.AddSingleton(secretsService); services.AddSingleton(_logger); services.AddSingleton(); - services.AddSingleton(provider => new StorageProvider(sqlConnectionString, provider.GetRequiredService())); + services.AddSingleton(provider => new StorageProvider(sqlConnectionString, provider.GetRequiredService())); services.AddSingleton(provider => new ConnectionManager(provider.GetRequiredService(), idScope, sasKey, maxPoolSize, provider.GetRequiredService())); services.AddSingleton(provider => new SubscriptionService(provider.GetRequiredService(), provider.GetRequiredService(), provider.GetRequiredService(), provider.GetRequiredService(), rampupBatchSize, rampupBatchIntervalMs)); services.AddSingleton(); diff --git a/Dockerfile b/Dockerfile index 46b3090..25f9813 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # Use SDK to build release package FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build-img WORKDIR /app -COPY . ./ +COPY DeviceBridge ./ RUN dotnet --info RUN dotnet publish -c Release -o out @@ -11,4 +11,4 @@ WORKDIR /app COPY --from=build-img /app/out ./ ENTRYPOINT ["dotnet", "DeviceBridge.dll"] -EXPOSE 5001 \ No newline at end of file +EXPOSE 5001