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

后端 未结 4 1796
孤独总比滥情好
孤独总比滥情好 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:15

    Suppose you have your Dockerfile available at /opt/myproject/. Then first you have to put rpm inside /opt/myproject and then add

    Add /xyz.rpm /xyz.rpm
    
    RUN rpm -i xyz.rpm
    

提交回复
热议问题