title: How to run python script in docker container?
body: <p>For some reason unknown to me section CMD does not work, but if I run the script by going into the container, it works.</p>
  <pre><code>FROM ubuntu:20.04
  RUN mkdir /home/bob
  WORKDIR /home/bob
  RUN apt-get install -y python3 python3-pip
  RUN echo &quot;pyodbc&quot; &gt; /tmp/req.txt
  RUN pip3 install -r /tmp/req.txt
  # Will attached to /home/bob/folder1 in container (folder0 contain files and folder with test1 name)
  ADD ./folder0 ./folder1
  RUN chmod ug+x /home/bob/test1
  CMD [python3 /home/bob/test1/bin/start.py &amp;&gt; /home/bob/test1/status.log]
  # CMD tail -f /tmp/req.txt
  </code></pre>
  <p>What am I doing wrong?
  ps: just started learning docker</p>