Docker image for Oracle Database 12.2.0.1 EE fails to build

I am getting the below error while building the docker image for oracle 12.2.0.1 enterprise edition.

    Removing intermediate container 206974c9a832
 ---> 8eee13b1829e
Step 14/31 : USER oracle
 ---> Running in d875ce26e071
Removing intermediate container d875ce26e071
 ---> 909aaacccaae
Step 15/31 : RUN /data/scripts/setupCentOS7Sys.sh oracle
 ---> Running in 28292232fb23
Script execution......................Start.................................
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 500 MB.   Actual 696982 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 34170 MB    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2020-12-12_04-39-18PM. Please wait ...[WARNING] [INS-13014] Target environment does not meet some optional requirements.
   CAUSE: Some of the optional prerequisites are not met. See logs for details. /tmp/OraInstall2020-12-12_04-39-18PM/installActions2020-12-12_04-39-18PM.log
   ACTION: Identify the list of failed prerequisite checks from the log: /tmp/OraInstall2020-12-12_04-39-18PM/installActions2020-12-12_04-39-18PM.log. Then either from the log file or from installation manual find the appropriate configuration to meet the prerequisites and fix it manually.
You can find the log of this install session at:
 /opt/oraInventory/logs/installActions2020-12-12_04-39-18PM.log
The installation of Oracle Database 12c was successful.
Please check '/opt/oraInventory/logs/silentInstall2020-12-12_04-39-18PM.log' for more details.

As a root user, execute the following script(s):
    1. /opt/oraInventory/orainstRoot.sh
    2. /opt/oracle/product/12.1.0.2/dbhome_1/root.sh



Successfully Setup Software.
Script execution.......................End..................................
Removing intermediate container 28292232fb23
 ---> 69963d9c2e26
Step 16/31 : USER root
 ---> Running in de6559a9cc39
Removing intermediate container de6559a9cc39
 ---> 0a8b4b4010fe
Step 17/31 : RUN /data/scripts/setupCentOS7Sys.sh
 ---> Running in 016591c06748
Script execution......................Start.................................
Changing permissions of /opt/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.

Changing groupname of /opt/oraInventory to oinstall.

please help

Source: Docker Questions