Skip to content
Advertisement

yum in dockerfile – There are no enabled repos

I am having issues with installing python3 with yum in dockerfile. I did look on internet, I did try few things, not working. Its just small thing but not able to figure it out. When I try to build below docker file I do get error . I get error at line –

RUN yum install -y oracle-epel-release-el7

JavaScript

The docker file is below.

JavaScript

Advertisement

Answer

Why mix apt and yum? You’re already using apt-get, just use it to install your python too:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement