diff --git a/wildfly-centos/Dockerfile b/wildfly-centos/Dockerfile index 5e167fb..01e19a3 100644 --- a/wildfly-centos/Dockerfile +++ b/wildfly-centos/Dockerfile @@ -1,17 +1,14 @@ FROM centos MAINTAINER Arun Gupta -# Execute system update -RUN yum -y update && yum clean all - -# Install packages necessary to run EAP -RUN yum -y install xmlstarlet saxon augeas bsdtar unzip && yum clean all - +# Execute system update and Install packages necessary to run EAP # Create a user and group used to launch processes # The user ID 1000 is the default for the first "regular" user on Fedora/RHEL, # so there is a high chance that this ID will be equal to the current user # making it easier to use volumes (no permission issues) -RUN groupadd -r jboss -g 1000 && useradd -u 1000 -r -g jboss -m -d /opt/jboss -s /sbin/nologin -c "JBoss user" jboss +RUN yum -y update && yum clean all && \ + yum -y install xmlstarlet saxon augeas bsdtar unzip && yum clean all && \ + groupadd -r jboss -g 1000 && useradd -u 1000 -r -g jboss -m -d /opt/jboss -s /sbin/nologin -c "JBoss user" jboss # Set the working directory to jboss' user home directory WORKDIR /opt/jboss