added docker for deployment and README for how to

This commit is contained in:
BeatriceAl
2026-05-11 22:01:37 +02:00
parent b5d1f40dca
commit 420bb8a4f9
4 changed files with 125 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
WORKDIR /src
COPY Guestlist.sln ./
COPY Guestlist/Guestlist.csproj Guestlist/
RUN dotnet restore Guestlist.sln
COPY Guestlist/ Guestlist/
RUN dotnet publish Guestlist/Guestlist.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", "Guestlist.dll"]