Files
Thuis_api/Dockerfile
KaasKop- 1433d59207 Start on dockerization
Edited freezerDto a tad
2023-04-07 13:03:22 +02:00

13 lines
287 B
Docker

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"]