Moved old project components to this new project

This commit is contained in:
2026-05-09 16:46:01 +02:00
parent 1c869b9a7b
commit b08e891020
40 changed files with 2910 additions and 1 deletions
+25
View File
@@ -0,0 +1,25 @@
# Stage 1: Build
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
WORKDIR /app
COPY ["../nuget.config", "./"]
COPY ["../LeadGenerator/LeadGenerator.csproj", "LeadGenerator/"]
RUN dotnet restore "LeadGenerator/LeadGenerator.csproj" --configfile nuget.config
COPY . .
RUN dotnet publish "../LeadGenerator/LeadGenerator.csproj" -c Release -o /app/publish /p:UseAppHost=false
# Stage 2: Final Image
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS final
WORKDIR /app
RUN addgroup --system --gid 1000 appgroup && \
adduser --system --uid 1000 --ingroup appgroup appuser
EXPOSE 8080
EXPOSE 8081
COPY --from=build /app/publish .
RUN chown -R appuser:appgroup /app
USER appuser
ENTRYPOINT ["dotnet", "LeadGenerator.dll"]