Browse Source

Add php7.3 docker

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
tags/php7.3-1
Roeland Jago Douma 11 months ago
parent
commit
0ff96ffc66
No account linked to committer's email address
2 changed files with 42 additions and 0 deletions
  1. 32
    0
      php7.3/Dockerfile
  2. 10
    0
      php7.3/nextcloud.ini

+ 32
- 0
php7.3/Dockerfile View File

@@ -0,0 +1,32 @@
FROM debian:jessie
RUN apt-get update && apt-get install -y wget gnupg2 libzip2 apt-transport-https lsb-release ca-certificates && \
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg && \
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list && \
apt-get update && apt-get install -y php7.3-intl php7.3-gd git curl \
php7.3-cli php7.3-curl php7.3-pgsql php7.3-ldap \
php7.3-sqlite php7.3-mysql php7.3-zip php7.3-xml \
php7.3-mbstring php7.3-dev make libmagickcore-6.q16-2-extra unzip \
php7.3-dev \
libsystemd-dev && \
apt-get autoremove -y && apt-get autoclean && apt-get clean && \
rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/*

RUN cd /tmp/ && wget https://github.com/nikic/php-ast/archive/master.zip && unzip master.zip
RUN cd /tmp/php-ast-master/ && phpize && ./configure && make && make install && rm -rf /tmp/php-ast-master/
RUN echo "extension=ast.so" >> /etc/php/7.3/cli/conf.d/20-ast.ini

RUN cd /tmp && wget -O php-systemd-src.zip https://github.com/systemd/php-systemd/archive/master.zip && \
unzip php-systemd-src.zip && cd /tmp/php-systemd-master && phpize && \
./configure --with-systemd && make && make install && rm -rf /tmp/php-systemd-master && \
echo "extension=systemd.so" >> /etc/php/7.3/mods-available/systemd.ini

RUN phpenmod zip intl gd systemd
RUN curl -O -L https://phar.phpunit.de/phpunit-6.5.5.phar \
&& chmod +x phpunit-6.5.5.phar \
&& mv phpunit-6.5.5.phar /usr/local/bin/phpunit
RUN curl -O -L https://getcomposer.org/download/1.6.2/composer.phar \
&& chmod +x composer.phar \
&& mv composer.phar /usr/local/bin/composer

RUN phpdismod xdebug
ADD nextcloud.ini /etc/php/7.3/cli/conf.d/nextcloud.ini

+ 10
- 0
php7.3/nextcloud.ini View File

@@ -0,0 +1,10 @@
memory_limit = 768M
phar.readonly = 0 ; only for building phar files on CI - should be disabled on production environments
; Opcache
opcache.enable=1
opcache.enable_cli=1
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=10000
opcache.memory_consumption=128
opcache.save_comments=1
opcache.revalidate_freq=1

Loading…
Cancel
Save