feat: add dockerfile
This commit is contained in:
parent
967020a1c7
commit
799a9bb064
17
GeoPulse Pipeline/dockerfile
Normal file
17
GeoPulse Pipeline/dockerfile
Normal file
@ -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"]
|
||||||
Loading…
Reference in New Issue
Block a user