github.com/devseccon/trivy@v0.47.1-0.20231123133102-bd902a0bd996/pkg/fanal/analyzer/buildinfo/testdata/dockerfile/Dockerfile-jboss-base-7-base-1.1-3 (about) 1 # registry.redhat.io/openshift3/metrics-cassandra:3.1.0 2 FROM 82ad5fa11820c2889c60f7f748d67aab04400700c581843db0d1e68735327443 3 MAINTAINER JBoss Cloud Enablement Feedback <cloud-enablement-feedback@redhat.com> 4 5 ENV base jboss-base 6 7 LABEL BZComponent="${base}-7-docker" \ 8 Architecture="x86_64" \ 9 Name="jboss-base-7/base" \ 10 Version="1.1" \ 11 Release="3" 12 13 # Explicitly set the $HOME env variable so it can be referenced in Dockerfiles 14 ENV HOME /home/jboss 15 16 ADD jboss.repo /etc/yum.repos.d/jboss.repo 17 18 # Install unzip and tar package which is required to unpack product distributions 19 # Cleanup the YUM metadata 20 RUN yum -y --disablerepo \* --enablerepo=jboss install yum-utils unzip tar && \ 21 yum clean all 22 23 RUN rm /etc/yum.repos.d/jboss.repo 24 25 # Create a user and group used to launch processes 26 # We use the ID 185 fot the group as well as for the user. 27 # This ID is registered static ID for the JBoss EAP product 28 # on RHEL which makes it safe to use. 29 RUN groupadd -r jboss -g 185 && useradd -u 185 -r -g jboss -m -d /home/jboss -s /sbin/nologin -c "JBoss user" jboss 30 31 # Set the working directory to jboss' user home directory 32 WORKDIR /home/jboss 33 34 # Specify the user which should be used to execute all commands below 35 USER jboss