From 799a9bb064b91072f2dbc4da35c7bdeb704703ef Mon Sep 17 00:00:00 2001 From: saingchildren Date: Sat, 2 May 2026 11:05:35 +0800 Subject: [PATCH] feat: add dockerfile --- GeoPulse Pipeline/dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 GeoPulse Pipeline/dockerfile diff --git a/GeoPulse Pipeline/dockerfile b/GeoPulse Pipeline/dockerfile new file mode 100644 index 0000000..413a5e1 --- /dev/null +++ b/GeoPulse Pipeline/dockerfile @@ -0,0 +1,17 @@ +FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build +WORKDIR /src + +COPY ["GeoPulse Pipeline.csproj", "./"] +RUN dotnet restore "./GeoPulse Pipeline.csproj" + +COPY . . +RUN dotnet publish "GeoPulse Pipeline.csproj" -c Release -o /app/publish /p:UseAppHost=false + +FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS final +WORKDIR /app + +COPY --from=build /app/publish . + +ENV ASPNETCORE_HTTP_PORTS=8080 + +ENTRYPOINT ["dotnet", "GeoPulse Pipeline.dll"]