FROM centos:centos7 MAINTAINER Suren A. Chilingaryan ENV container centos-tools RUN [ -e /etc/yum.conf ] && sed -i '/tsflags=nodocs/d' /etc/yum.conf || true # Reinstall all packages to get man pages for them RUN yum -y reinstall "*" && yum clean all # Swap out the systemd-container package and install all useful packages RUN yum -y install \ yum-utils glibc-utils bash-completion less file sed findutils net-tools man-db which bc tar \ openssh-clients lftp curl samba-client \ screen vim-enhanced nano \ git bzr \ mc \ kubernetes-client \ && yum clean all COPY sx.sh /bin/sx RUN chmod 775 /bin/sx # For ugly applications which want to resolve user name RUN chmod g=u /etc/passwd COPY docker-entrypoint.sh / ENTRYPOINT ["/docker-entrypoint.sh"] CMD [ "/bin/sx" ]