title: dockerfile setup for php connecting to Oracle
body: <p>I have problem setting up the php connecting to Oracle databases, the following message is encountered:</p>
  <pre><code>Step 4/7 : ADD instantclient-basic-linux.x64-12.1.0.2.0.zip /opt/oracle
  ERROR: Service 'php-apache' failed to build: ADD failed: stat /var/lib/docker/tmp/docker-builder164874438/instantclient-basic-linux.x64-12.1.0.2.0.zip: no such file or directory
  </code></pre>
  <p>Dockerfile</p>
  <pre><code>FROM php:7.4-apache
  RUN docker-php-ext-install pdo pdo_mysql mysqli
  </code></pre>
  <h1>ORACLE oci</h1>
  <pre><code>RUN mkdir /opt/oracle \
      &amp;&amp; cd /opt/oracle
  ADD instantclient-basic-linux.x64-12.1.0.2.0.zip /opt/oracle
  ADD instantclient-sdk-linux.x64-12.1.0.2.0.zip /opt/oracle
  </code></pre>
  <h1>Install Oracle Instant Client</h1>
  <pre><code>RUN  unzip /opt/oracle/instantclient-basic-linux.x64-12.1.0.2.0.zip -d /opt/oracle \
      &amp;&amp; unzip /opt/oracle/instantclient-sdk-linux.x64-12.1.0.2.0.zip -d /opt/oracle \
      &amp;&amp; ln -s /opt/oracle/instantclient_12_1/libclntsh.so.12.1 /opt/oracle/instantclient_12_1/libclntsh.so \
      &amp;&amp; ln -s /opt/oracle/instantclient_12_1/libclntshcore.so.12.1 /opt/oracle/instantclient_12_1/libclntshcore.so \
      &amp;&amp; ln -s /opt/oracle/instantclient_12_1/libocci.so.12.1 /opt/oracle/instantclient_12_1/libocci.so \
      &amp;&amp; rm -rf /opt/oracle/*.zip
  </code></pre>
  <h1>Install Oracle extensions</h1>
  <pre><code>RUN echo 'instantclient,/opt/oracle/instantclient_12_1/' | pecl install oci8 \ 
        &amp;&amp; docker-php-ext-enable \
                 oci8 \ 
         &amp;&amp; docker-php-ext-configure pdo_oci --with-pdo-oci=instantclient,/opt/oracle/instantclient_12_1,12.1 \
         &amp;&amp; docker-php-ext-install \
                 pdo_oci 
  </code></pre>