For example: 'alias python=/home/user/python3.6' Is something I might want to put into my bashrc How do I set this in a Dockerfile I know of the ENV command which sets path variable, is it possible to do similar for setting an alias?
simply use RUN to add an alias to bash_profile.
FROM ubuntu
MAINTAINER Mojtaba Yeganeh
RUN echo "alias python=/home/user/python3.6" >> ~/.bash_profile
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With