title: How to add pytorch to a docker file containing a project written in C++?
body: <p>I am working on a project which has a docker image (I am very new to docker). The project is written in C++ but has some python features. I can easily install python when I start the image by doing <code>apk add python3</code>, for example. However, this does not work for pytorch. How do I add pytorch to the working environment encapsulated in the docker image? Do I necessarily need to modify the docker image or I can install pytorch after the image has started (just like I do with Python)?</p>