Files
Grae Jones 967f04ebbc
All checks were successful
CI Build and Deploy / build (push) Successful in 4m13s
First Produciton Attempt
2026-03-17 18:23:32 -07:00

16 lines
459 B
Docker

FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
WORKDIR /app
EXPOSE 8080
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
WORKDIR /src
COPY ["IntelligenceApi/IntelligenceApi.csproj", "IntelligenceApi/"]
RUN dotnet restore "IntelligenceApi/IntelligenceApi.csproj"
COPY . .
WORKDIR "/src/IntelligenceApi"
RUN dotnet publish -c Release -o /app/publish
FROM base AS final
WORKDIR /app
COPY --from=build /app/publish .
ENTRYPOINT ["dotnet", "IntelligenceApi.dll"]