Add dockerfile
This commit is contained in:
11
Dockerfile
Normal file
11
Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user