例如:
'别名 python=/home/user/python3.6'
我可能想放入我的 bashrc 中
我如何在 Dockerfile 中设置它
我知道设置路径变量的 ENV 命令,是否可以为设置别名做类似的事情?
最佳答案
只需使用 RUN 将别名添加到 bash_profile
.
FROM ubuntu
MAINTAINER Mojtaba Yeganeh
RUN echo "alias python=/home/user/python3.6" >> ~/.bash_profile
关于docker - 如何在 Docker 镜像的 .bashrc 中设置别名,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48230825/