在Dockerfile中使用和“Source”的Run指令不起作用?


報錯誤 /bin/sh: 1: source: not found

sh不支持source

bash支持source

RUN rm /bin/sh && ln -s /bin/bash /bin/sh

RUN /bin/bash -c "source /usr/local/bin/virtualenvwrapper.sh"

 

 

對於環境變量文件/etc/profile不起作用

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM