adding new project pipelines

This commit is contained in:
2026-03-20 21:26:05 -03:00
parent 3938d1a2b9
commit 794e314fa7
6 changed files with 297 additions and 0 deletions

21
Mindforge.API/Dockerfile Normal file
View File

@@ -0,0 +1,21 @@
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:9.0-alpine AS builder
ARG TARGETARCH
ARG TARGETOS
WORKDIR /app
COPY Mindforge.API.csproj ./
RUN dotnet restore -a $TARGETARCH
COPY . .
RUN dotnet publish -c Release -a $TARGETARCH --no-restore -o /app/publish
FROM mcr.microsoft.com/dotnet/aspnet:9.0-alpine
WORKDIR /app
COPY --from=builder /app/publish .
ENV ASPNETCORE_URLS=http://+:8080
ENV OPENAI_API_KEY=""
ENV GEMINI_API_KEY=""
EXPOSE 8080
ENTRYPOINT ["dotnet", "Mindforge.API.dll"]