Files
AdPlatform-Server/GoogleApi/Dockerfile
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
417 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 ["GoogleApi/GoogleApi.csproj", "GoogleApi/"]
RUN dotnet restore "GoogleApi/GoogleApi.csproj"
COPY . .
WORKDIR "/src/GoogleApi"
RUN dotnet publish -c Release -o /app/publish
FROM base AS final
WORKDIR /app
COPY --from=build /app/publish .
ENTRYPOINT ["dotnet", "GoogleApi.dll"]