Compare commits
4
Commits
101ed22d92
...
1.2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3428c47721 | ||
|
|
eaddb86a11 | ||
|
|
1a751c9907 | ||
|
|
e7dd139585 |
@@ -12,12 +12,6 @@ RUN dotnet publish "LiteCharmsScheduler/LiteCharmsScheduler.csproj" -c Release -
|
|||||||
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS final
|
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS final
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
RUN addgroup --system --gid 1000 appgroup && \
|
|
||||||
adduser --system --uid 1000 --ingroup appgroup appuser
|
|
||||||
|
|
||||||
COPY --from=build /app/publish .
|
COPY --from=build /app/publish .
|
||||||
|
|
||||||
RUN chown -R appuser:appgroup /app
|
|
||||||
USER appuser
|
|
||||||
|
|
||||||
ENTRYPOINT ["dotnet", "LiteCharmsScheduler.dll"]
|
ENTRYPOINT ["dotnet", "LiteCharmsScheduler.dll"]
|
||||||
@@ -9,7 +9,7 @@ builder.Services.AddEmailServiceBus();
|
|||||||
builder.Services.AddSalesServiceBus();
|
builder.Services.AddSalesServiceBus();
|
||||||
builder.Services.AddGeneralServiceBus();
|
builder.Services.AddGeneralServiceBus();
|
||||||
builder.Services.AddEmailServices(builder.Configuration);
|
builder.Services.AddEmailServices(builder.Configuration);
|
||||||
builder.Services.AddLeadGeneratorDatabase(builder.Configuration);
|
builder.Services.AddShopDatabase(builder.Configuration);
|
||||||
builder.Services.AddQuartzSchedulerClient(ShopSchedulerName, ShopSchedulerInstanceId, builder.Configuration);
|
builder.Services.AddQuartzSchedulerClient(ShopSchedulerName, ShopSchedulerInstanceId, builder.Configuration);
|
||||||
|
|
||||||
builder.Services.AddHostedService<Worker>();
|
builder.Services.AddHostedService<Worker>();
|
||||||
|
|||||||
Reference in New Issue
Block a user