How to install a local rpm file when building docker instance?

后端 未结 4 1787
孤独总比滥情好
孤独总比滥情好 2021-02-02 13:56

I have following docker file, I want to specifically install a rpm file that is available on my disk as I am building docker instance. My invocation of rpm install looks like th

4条回答
  •  温柔的废话
    2021-02-02 14:19

    Put this line before your rpm -i command:

    ADD /host/abs/path/to/chrpath-0.13-14.el7.x86_64.rpm /chrpath-0.13-14.el7.x86_64.rpm
    

    Then you'll be able to do

    RUN rpm -i chrpath-0.13-14.el7.x86_64.rpm
    

提交回复
热议问题