Files
agologum/api/Dockerfile
Blitblank f27a71dc35
All checks were successful
Build and Deploy Frontend / build-and-deploy (push) Successful in 4s
Build and Deploy API / build-and-deploy (push) Successful in 7s
test ports
2026-02-28 18:48:52 -06:00

21 lines
350 B
Docker

# build
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
WORKDIR /src
COPY *.csproj ./
RUN dotnet restore
COPY . ./
RUN dotnet publish -c Release -o /app/publish
# run
FROM mcr.microsoft.com/dotnet/aspnet:10.0
WORKDIR /app
ENV ASPNETCORE_URLS=http://+:5000
COPY --from=build /app/publish ./
EXPOSE 5000
ENTRYPOINT ["dotnet", "agologum-api.dll"]