From 5f4bf26429663896f49aa79e881d29a131fff579 Mon Sep 17 00:00:00 2001 From: Mark Caron <152440806+MarkCaronJr@users.noreply.github.com> Date: Wed, 31 Jul 2024 13:45:54 -0500 Subject: [PATCH] Update Dockerfile --- Dockerfile | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3334c52..8846a23 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,21 +2,21 @@ FROM redhat/ubi8:latest # Clean up and update yum, then install required packages RUN yum clean all && yum -y update -v && yum -y upgrade -v && \ - yum -y install wget rpm-build rpm-devel rpmlint make coreutils diffutils patch rpmdevtools make python -v + yum -y install wget rpm-build rpmlint make coreutils diffutils patch python3 -v -# Set up the build directories -RUN mkdir -p /root/rpmbuild/{RPMS/noarch,SOURCES,SPECS,SRPMS} +# Create the rpm build directories +RUN mkdir -p /root/rpmbuild/RPMS/noarch && \ + mkdir -p /root/rpmbuild/SOURCES && \ + mkdir -p /root/rpmbuild/SPECS && \ + mkdir -p /root/rpmbuild/SRPMS -# Copy source and spec files +# Copy source files and spec file COPY *.tar.gz /root/rpmbuild/SOURCES/ COPY *.patch /root/rpmbuild/SOURCES/ ADD tomcat.spec /root/rpmbuild/SPECS/ -# Define the volume for the built RPMs -VOLUME /root/rpmbuild/RPMS/noarch - -# Set the working directory +# Set working directory WORKDIR /root/rpmbuild/RPMS/noarch -# Default command to build the RPM -CMD ["rpmbuild", "--target", "noarch", "-v", "-bb", "/root/rpmbuild/SPECS/tomcat.spec"] +# Command to build RPM +CMD ["rpmbuild", "--target", "noarch", "-v", "-bb", "tomcat.spec"]