Start on dockerization

Edited freezerDto a tad
This commit is contained in:
KaasKop-
2023-04-07 13:03:22 +02:00
parent aff9bbe7d2
commit 1433d59207
13 changed files with 415 additions and 9 deletions

13
Dockerfile Normal file
View File

@@ -0,0 +1,13 @@
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
WORKDIR /src
COPY ThuisApi.csproj .
RUN dotnet restore
COPY . .
RUN dotnet publish -c release -o /app --no-restore
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS final
WORKDIR /app
COPY --from=build /app .
ENTRYPOINT ["dotnet", "ThuisApi.dll"]