FROM centos:centos7 # Define args and set a default value ARG maintainer=tier ARG imagename=centos7base MAINTAINER $maintainer LABEL Vendor="Internet2" LABEL ImageType="Base" LABEL ImageName=$imagename LABEL ImageOS=centos7 LABEL Version=1.0 LABEL Build docker build --rm --tag $maintainer/$imagename . # Install base deps RUN yum -y install epel-release && yum -y update && yum clean all RUN yum -y install --setopt=tsflags=nodocs epel-release && \ yum -y install net-tools wget curl tar unzip mlocate logrotate strace telnet man unzip vim wget rsyslog cron \ yum -y update && yum clean all # Set default environment variables. ENV HOME /root # Allow triggerable events on the first time running RUN touch /tmp/firsttimerunning # Define working directory. WORKDIR /root