Adding gitea runner and microservices

This commit is contained in:
2025-11-23 00:40:39 -06:00
parent 337e26c4ed
commit 1d1bb1bf4f
59 changed files with 1669 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
WORKDIR /src
# Copy project file first to take advantage of Docker layer caching
COPY ["Auth.csproj", "./"]
RUN dotnet restore "Auth.csproj"
# Copy the remaining source and publish
COPY . .
RUN dotnet publish "Auth.csproj" -c Release -o /app/publish /p:UseAppHost=false
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS final
WORKDIR /app
COPY --from=build /app/publish .
ENV ASPNETCORE_URLS=http://+:8080 \
ASPNETCORE_ENVIRONMENT=Production
EXPOSE 8080
ENTRYPOINT ["dotnet", "Auth.dll"]