Edit Dockerfile
This commit is contained in:
+1
-10
@@ -2,6 +2,7 @@
|
||||
# 1. APPLICATION STAGE (Single Stage untuk Lingkungan Offline)
|
||||
# =========================================================
|
||||
FROM 10.15.39.186:8083/php74-fpm-oci8-lengkap:1.0
|
||||
FROM 10.15.39.186:8084/library/php:7.4-fpm
|
||||
|
||||
ARG http_proxy
|
||||
ARG https_proxy
|
||||
@@ -11,7 +12,6 @@ ENV https_proxy=$https_proxy
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
vim \
|
||||
alien \
|
||||
wget \
|
||||
libpng-dev \
|
||||
libjpeg-dev \
|
||||
@@ -24,17 +24,8 @@ RUN apt-get update && apt-get install -y \
|
||||
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
|
||||
&& docker-php-ext-install gd pdo pdo_mysql zip
|
||||
|
||||
RUN wget https://download.oracle.com/otn_software/linux/instantclient/1919000/oracle-instantclient19.19-basic-19.19.0.0.0-1.el9.x86_64.rpm && \
|
||||
wget https://download.oracle.com/otn_software/linux/instantclient/1919000/oracle-instantclient19.19-devel-19.19.0.0.0-1.el9.x86_64.rpm && \
|
||||
alien -i oracle-instantclient19.19-*.rpm && \
|
||||
rm oracle-instantclient19.19-*.rpm
|
||||
|
||||
RUN pear config-set http_proxy "http://10.15.3.20:80" && export PHP_DTRACE=yes
|
||||
|
||||
# Install ekstensi OCI8
|
||||
RUN pecl channel-update pecl.php.net && C_INCLUDE_PATH=/usr/include/oracle/19.19/client64 pecl install oci8-2.2.0 && \
|
||||
echo "extension=oci8.so" > /usr/local/etc/php/conf.d/oci8.ini
|
||||
|
||||
# Install Composer
|
||||
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
|
||||
|
||||
|
||||
Reference in New Issue
Block a user