title: How to install python on a docker container
body: <p>I have created a docker-compose yml file to run a cron-job in a docker container.</p>
  <p>The cron-job which will run inside the docker container has to run a <strong>python</strong> script and connect to <strong>mysql</strong> an <strong>redis</strong> through redis-sentinel.</p>
  <p><strong>Cron-job need python and required python-dependencies(mysql and redis sentinel)</strong> to be installed in the docker container to run the python script successfully.</p>
  <p>here is my docker-compose yml file</p>
  <pre><code>version: '3'
  services:
    cron-job:
      image: alpine:3.10
      command: crond -f -d 8
      volumes:
        - /Users/anshul/cron:/etc/crontabs/root:z
      restart: unless-stopped
  networks:
    default:
      external:
        name: cnet
  </code></pre>
  <p>What changes I need to do here to have python and required dependencies installed on the docker container, which will come up after running this compose file.</p>