Fixing build
This commit is contained in:
Родитель
171ad06b7c
Коммит
4435787928
|
@ -71,7 +71,7 @@ namespace DeviceBridge
|
|||
services.AddSingleton<ISecretsProvider>(secretsService);
|
||||
services.AddSingleton(_logger);
|
||||
services.AddSingleton<IEncryptionService, EncryptionService>();
|
||||
services.AddSingleton<IStorageProvider>(provider => new StorageProvider(sqlConnectionString, provider.GetRequiredService<EncryptionService>()));
|
||||
services.AddSingleton<IStorageProvider>(provider => new StorageProvider(sqlConnectionString, provider.GetRequiredService<IEncryptionService>()));
|
||||
services.AddSingleton(provider => new ConnectionManager(provider.GetRequiredService<Logger>(), idScope, sasKey, maxPoolSize, provider.GetRequiredService<IStorageProvider>()));
|
||||
services.AddSingleton<ISubscriptionService>(provider => new SubscriptionService(provider.GetRequiredService<Logger>(), provider.GetRequiredService<ConnectionManager>(), provider.GetRequiredService<IStorageProvider>(), provider.GetRequiredService<IHttpClientFactory>(), rampupBatchSize, rampupBatchIntervalMs));
|
||||
services.AddSingleton<IBridgeService, BridgeService>();
|
||||
|
|
|
@ -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
|
||||
EXPOSE 5001
|
||||
|
|
Загрузка…
Ссылка в новой задаче