Skip to content

Commit 82025e3

Browse files
authored
Merge pull request #2 from moveis-simonetti/php7dot1-new
Upgrade to PHP 7.1
2 parents c9b69cc + 0a9ea8a commit 82025e3

File tree

1 file changed

+11
-17
lines changed

1 file changed

+11
-17
lines changed

Dockerfile

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Container Base
2-
FROM php:5.5-apache
2+
FROM php:7.1-apache
33

44
ENV http_proxy ${HTTP_PROXY}
55
ENV https_proxy ${HTTP_PROXY}
@@ -22,16 +22,16 @@ RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-di
2222
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \
2323
&& docker-php-ext-configure imap --with-kerberos --with-imap-ssl \
2424
&& docker-php-ext-install -j$(nproc) iconv bcmath mcrypt \
25-
gd mysql pdo_mysql calendar curl exif ftp gettext \
25+
gd pdo_mysql calendar curl exif ftp gettext \
2626
hash xsl ldap intl imap pdo_sqlite mbstring \
2727
mcrypt pcntl readline shmop soap sockets wddx zip
2828

2929
# Install ssh2
30-
RUN wget https://www.libssh2.org/download/libssh2-1.7.0.tar.gz && wget https://pecl.php.net/get/ssh2-0.13.tgz \
31-
&& tar vxzf libssh2-1.7.0.tar.gz && tar vxzf ssh2-0.13.tgz \
30+
RUN wget https://www.libssh2.org/download/libssh2-1.7.0.tar.gz && wget https://pecl.php.net/get/ssh2-1.1.2.tgz \
31+
&& tar vxzf libssh2-1.7.0.tar.gz && tar vxzf ssh2-1.1.2.tgz \
3232
&& cd libssh2-1.7.0 && ./configure \
3333
&& make && make install \
34-
&& cd ../ssh2-0.13 && phpize && ./configure --with-ssh2 \
34+
&& cd ../ssh2-1.1.2 && phpize && ./configure --with-ssh2 \
3535
&& make && make install \
3636
&& echo "extension=ssh2.so" >> /usr/local/etc/php/conf.d/ssh2.ini
3737

@@ -46,24 +46,18 @@ RUN mkdir -p /opt/oci8 \
4646
&& ln -s libclntsh.so.12.1 libclntsh.so \
4747
&& ln -s libocci.so.12.1 libocci.so \
4848
&& cd /tmp \
49-
&& wget http://pecl.php.net/get/oci8-2.0.8.tgz \
50-
&& tar xzf oci8-2.0.8.tgz \
51-
&& cd oci8-2.0.8 \
49+
&& wget https://pecl.php.net/get/oci8-2.1.7.tgz \
50+
&& tar xzf oci8-2.1.7.tgz \
51+
&& cd oci8-2.1.7 \
5252
&& phpize \
5353
&& ./configure --with-oci8=shared,instantclient,/opt/oci8/instantclient_12_1/ \
5454
&& make \
5555
&& make install \
56-
&& echo "extension=/tmp/oci8-2.0.8/modules/oci8.so" >> /usr/local/etc/php/conf.d/oci8.ini
56+
&& echo "extension=/tmp/oci8-2.1.7/modules/oci8.so" >> /usr/local/etc/php/conf.d/oci8.ini
5757

5858
# Install redis
59-
RUN mkdir -p /tmp/redis \
60-
&& cd /tmp/redis \
61-
&& wget https://pecl.php.net/get/redis-2.2.8.tgz \
62-
&& tar -xvf redis-2.2.8.tgz \
63-
&& cd redis-2.2.8 \
64-
&& phpize && ./configure \
65-
&& make && make install \
66-
&& echo "extension=redis.so" > /usr/local/etc/php/conf.d/redis.ini
59+
RUN pecl install redis \
60+
&& echo "extension=redis.so" >> /usr/local/etc/php/conf.d/oci8.ini
6761

6862
# Install Composer
6963
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin/ --filename=composer

0 commit comments

Comments
 (0)