-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
48 lines (38 loc) · 1.62 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
FROM webdevops/php-apache:7.4
# Instalação de dependências
RUN apt-get update && \
apt-get install -y libaio1 libaio-dev wget && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Adiciona os arquivos instantclient
ADD instantclient-basic.zip /tmp/
ADD instantclient-sdk.zip /tmp/
# Cria diretórios necessários
RUN mkdir -p /opt/oracle && \
mkdir -p /var/secrets
# Descompacta os arquivos instantclient
RUN unzip /tmp/instantclient-basic.zip -d /opt/oracle/ && \
unzip /tmp/instantclient-sdk.zip -d /opt/oracle/ && \
ln -s /opt/oracle/instantclient_19_21 /opt/oracle/instantclient
# Configura a variável de ambiente LD_LIBRARY_PATH
ENV LD_LIBRARY_PATH /opt/oracle/instantclient
# Instala a extensão oci8
RUN echo 'instantclient,/opt/oracle/instantclient' | pecl install oci8-2.2.0 && \
echo "extension=oci8" > $(pecl config-get ext_dir)/oci8.ini
# Instala a extensão pdo_oci
RUN docker-php-ext-configure pdo_oci --with-pdo-oci=instantclient,/opt/oracle/instantclient && \
docker-php-ext-install pdo_oci
# Instala o PhantomJS
RUN apt-get update && \
apt-get install -y wget && \
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 && \
tar xvjf phantomjs-2.1.1-linux-x86_64.tar.bz2 -C /usr/local/share/ && \
ln -s /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin/ && \
rm phantomjs-2.1.1-linux-x86_64.tar.bz2 && \
apt-get remove -y wget && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Reinicia o serviço Apache
RUN service apache2 restart
#RUN export OPENSSL_CONF=/etc/ssl/
#ENV OPENSSL_CONF /etc/ssl/