Advertisement
Chelovek322

Untitled

Jan 5th, 2023
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. RUN cd /etc/yum.repos.d/
  2. RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
  3. RUN sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
  4.  
  5. RUN yum -y install java
  6.  
  7. CMD /bin/bash
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement