huntapi/Dockerfile
Finn Skov Henriksen 4362d4ca26
All checks were successful
Build / Restore, build and publish (push) Successful in 52s
Build / Build and run Docker container (push) Successful in 59s
ci update
2026-08-31 14:05:09 +02:00

19 lines
450 B
Docker

FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
WORKDIR /src
COPY NuGet.config .
COPY HuntingAppApi.csproj .
RUN dotnet restore HuntingAppApi.csproj
COPY . .
RUN dotnet publish HuntingAppApi.csproj --configuration Release --no-restore --output /app/publish
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS runtime
WORKDIR /app
ENV ASPNETCORE_URLS=http://+:8080
EXPOSE 8080
COPY --from=build /app/publish .
ENTRYPOINT ["dotnet", "HuntingAppApi.dll"]