deploy setup

This commit is contained in:
2026-02-27 21:34:13 -06:00
parent 9d7a443b7c
commit 24b9f21541
4 changed files with 53 additions and 1 deletions

20
api/Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
# 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://+:8080
COPY --from=build /app/publish .
EXPOSE 8080
ENTRYPOINT ["dotnet", "agologum-api.dll"]