Execute Python scripts from Docker Container

For anyone who stumbles on this, please look at Docker Hub

I’m migrating my OH3 over to a docker based setup on my Synology and I needed to be able to run python scripts natively through exec.

I used this to create a small shell script that installs python at the start of the docker session. It’s not the most amazing thing, but it works. Basically create the cont-init.d folder and make sure it is mapped to /etc/cont-init.d inside the environment. I then created a python-install.sh file and put:

#!/bin/bash

apt-get update
apt-get install --no-install-recommends -y python

Yes that causes my docker to take longer to start, but it all works so until I have a better answer, this is my answer.