Add dockerfile

This commit is contained in:
2024-05-24 22:44:17 -05:00
parent 1063a60814
commit ee1e25ccec
3 changed files with 32 additions and 15 deletions

11
Dockerfile Normal file
View File

@@ -0,0 +1,11 @@
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
# Copy everything
COPY . ./
RUN dotnet run --project ./tools/Build/Build.csproj deployment-package
# Build runtime image
FROM mcr.microsoft.com/dotnet/aspnet:8.0
COPY --from=build-env /artifacts .
ENTRYPOINT ["dotnet", "Twain.Web.dll"]