title: How to DockerFile commands in bash instead of sh, does bash alias work for sh shell?
body: <p>I started with dockerizing my python <code>hello world</code> program, and the dockerfile looks something like this.</p>
  
  <pre><code>FROM ubuntu:16.04
  MAINTAINER Bhavani Ravi
  
  RUN apt-get update
  RUN apt-get install -y software-properties-common vim
  RUN add-apt-repository ppa:jonathonf/python-3.6
  RUN apt-get update
  
  RUN apt-get install -y build-essential python3.6 python3.6-dev python3-pip python3.6-venv
  RUN apt-get install -y git
  
  # update pip
  RUN python3.6 -m pip install pip --upgrade
  RUN python3.6 -m pip install wheel
  
  RUN echo 'alias python=python3.6' &gt;&gt; ~/.bash_aliases
  COPY hello.py .
  ENTRYPOINT python hello.py
  </code></pre>
  
  <p>The problem is now when I run the image I get <code>/bin/sh: 1: python: not found</code>.
  As you can see in the dockerfile, I have set up <code>bash_alias.</code> When I override <code>entrypoint</code> and run the image with <code>/bin/bash</code> and then use <code>python</code> command it works.</p>
  
  <ol>
  <li>How to make the alaias work for all command environments</li>
  <li>Can you run dockerfile commands in bash instead of shell</li>
  </ol>