I have a console .Net Core application which also uses Python, nVidia CUDA runtime, etc.
I know about building patterns, but so far I just directly use build output of Visual Studio to create image, so my Dockerfile is simple:
FROM mcr.microsoft.com/dotnet/core/runtime:3.1.4-buster-slim AS base
FROM base AS final
WORKDIR /app
COPY . .
ENTRYPOINT ["dotnet", "MyApp.dll"]
In the same way as with the NetCore runtime, there're Python and nVidia CUDA images available. But if I just run another container with Python - my app is unable to use Python from this container, because containers are isolated and they may only interact using TCP. My thought was that I might use multiple images as base image for image with my app, but I don't see a way to use multiple FROM statements to combine one single image from them.
What's the proper way of using Python, CUDA and other images with environments from container with my running app, which only has NetCore runtime by default?