Skip to content

Commit c77ab4b

Browse files
committed
added PHP 7.3.0
1 parent 32466b9 commit c77ab4b

File tree

3 files changed

+101
-1
lines changed

3 files changed

+101
-1
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ script:
1111
- docker run --rm -it exozet/php-fpm:${PHP_VERSION} php -v
1212

1313
env:
14+
- PHP_VERSION=7.3.0 PHP_VERSION_ALIAS=7.3
1415
- PHP_VERSION=7.2.0
1516
- PHP_VERSION=7.2.1
1617
- PHP_VERSION=7.2.2

7.3/Dockerfile

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
FROM php:7.3-fpm
2+
3+
# ssh2
4+
RUN apt-get update && apt-get install -y libssh2-1-dev libssh2-1
5+
RUN pecl install ssh2-1.1.2
6+
RUN echo extension=ssh2.so >> /usr/local/etc/php/conf.d/ssh2.ini
7+
# ssh2
8+
9+
RUN apt-get update && apt-get install -y libz-dev libmemcached-dev
10+
RUN pecl install memcached-3.0.4
11+
RUN echo extension=memcached.so >> /usr/local/etc/php/conf.d/memcached.ini
12+
13+
# gd extension
14+
RUN apt-get update && apt-get install -y \
15+
libpng-dev \
16+
libfreetype6-dev \
17+
libjpeg-dev \
18+
libxpm-dev \
19+
libxml2-dev \
20+
libxslt-dev \
21+
libwebp-dev # php >=7.0 (use libvpx for php <7.0)
22+
RUN docker-php-ext-configure gd \
23+
--with-freetype-dir=/usr/include/ \
24+
--with-jpeg-dir=/usr/include/ \
25+
--with-xpm-dir=/usr/include \
26+
--with-webp-dir=/usr/include/ # php >=7.0 (use libvpx for php <7.0)
27+
RUN docker-php-ext-install gd
28+
29+
RUN docker-php-ext-install zip
30+
RUN docker-php-ext-install xsl
31+
32+
RUN apt-get update && apt-get install -y libicu-dev
33+
RUN docker-php-ext-install intl
34+
35+
RUN docker-php-ext-install mysqli
36+
RUN docker-php-ext-install pdo_mysql
37+
RUN docker-php-ext-install opcache
38+
RUN docker-php-ext-install bcmath
39+
RUN docker-php-ext-install calendar
40+
41+
# ldap
42+
RUN apt-get update && apt-get install libldap2-dev -y && \
43+
rm -rf /var/lib/apt/lists/* && \
44+
docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ && \
45+
docker-php-ext-install ldap
46+
# ldap
47+
48+
RUN docker-php-ext-configure pcntl --enable-pcntl \
49+
&& docker-php-ext-install pcntl
50+
51+
RUN pecl install xdebug-2.7.0beta1
52+
RUN echo "zend_extension=`php -i | grep ^extension_dir | cut -f 3 -d ' '`/xdebug.so" >> /usr/local/etc/php/conf.d/xdebug.ini
53+
54+
RUN docker-php-ext-install soap
55+
56+
ENV COMPOSER_HOME=/composer
57+
COPY --from=composer:1.7.1 /usr/bin/composer /usr/local/bin/composer
58+
59+
RUN apt-get update && apt-get install -y git vim mysql-client rsync sshpass bzip2 msmtp unzip
60+
61+
ADD php.ini /usr/local/etc/php/php.ini
62+
63+
# Cron
64+
RUN apt-get update && apt-get install -y cron \
65+
&& mkfifo --mode 0666 /var/log/cron.log \
66+
&& sed --regexp-extended --in-place \
67+
's/^session\s+required\s+pam_loginuid.so$/session optional pam_loginuid.so/' \
68+
/etc/pam.d/cron
69+
70+
COPY start-cron /usr/sbin
71+
RUN chmod +x /usr/sbin/start-cron
72+
# Cron
73+
74+
ENV PHP_DATE_TIMEZONE="" \
75+
PHP_LOG_ERRORS_MAX_LEN=1024 \
76+
PHP_LOG_ERRORS="" \
77+
PHP_MAX_EXECUTION_TIME=0 \
78+
PHP_MAX_FILE_UPLOADS=20 \
79+
PHP_MAX_INPUT_VARS=1000 \
80+
PHP_MEMORY_LIMIT=128M \
81+
PHP_POST_MAX_SIZE=8M \
82+
PHP_SENDMAIL_PATH="/usr/sbin/sendmail -t -i" \
83+
PHP_SESSION_SAVE_HANDLER=files \
84+
PHP_SESSION_SAVE_PATH="" \
85+
PHP_UPLOAD_MAX_FILESIZE=2M \
86+
PHP_XDEBUG_DEFAULT_ENABLE=0 \
87+
PHP_XDEBUG_IDEKEY=''\
88+
PHP_XDEBUG_PROFILER_ENABLE=0 \
89+
PHP_XDEBUG_REMOTE_AUTOSTART=0 \
90+
PHP_XDEBUG_REMOTE_CONNECT_BACK=0 \
91+
PHP_XDEBUG_REMOTE_ENABLE=0 \
92+
PHP_XDEBUG_REMOTE_HOST=0
93+
94+
WORKDIR /usr/src/app
95+
96+
# imagick
97+
RUN apt-get update && apt-get install -y libmagickwand-dev \
98+
&& pecl install imagick \
99+
&& docker-php-ext-enable imagick

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ This is a docker php fpm image, based on the official php fpm image. It has the
2121
- pdo_mysql (5.0.11-dev)
2222
- pdo_pgsql
2323
- pgsql
24-
- xdebug (2.4.0 for php <5.5, 2.5.5 for php <7.0, 2.6.1 for php >=7.0)
24+
- xdebug (2.4.0 for php <5.5, 2.5.5 for php <7.0, 2.6.1 for php 7.0, 7.1 & 7.2, 2.7.0beta1 for php 7.3)
2525
- opcache (for php >=5.5, since it's replacing apc since 5.5)
2626
- apc (for php <5.5, since it's replaced by opcache since 5.5)
2727
- pcntl

0 commit comments

Comments
 (0)