mirror of
https://github.com/nextcloud/docker.git
synced 2025-04-01 19:06:08 +02:00
Dockerfile converted to Alpine Linux based image and PHP7
This commit is contained in:
parent
177ca66cc7
commit
1dd6a708f9
1 changed files with 24 additions and 22 deletions
44
Dockerfile
44
Dockerfile
|
@ -1,21 +1,7 @@
|
||||||
FROM php:5.6-fpm
|
FROM php:7.0-fpm-alpine
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y \
|
|
||||||
bzip2 \
|
|
||||||
libcurl4-openssl-dev \
|
|
||||||
libfreetype6-dev \
|
|
||||||
libicu-dev \
|
|
||||||
libjpeg-dev \
|
|
||||||
libmcrypt-dev \
|
|
||||||
libmemcached-dev \
|
|
||||||
libpng12-dev \
|
|
||||||
libpq-dev \
|
|
||||||
libxml2-dev \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
# https://docs.nextcloud.com/server/9/admin_manual/installation/source_installation.html
|
# https://docs.nextcloud.com/server/9/admin_manual/installation/source_installation.html
|
||||||
RUN docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
|
RUN docker-php-ext-install gd exif intl mbstring mcrypt opcache pdo_mysql pdo_pgsql pgsql zip
|
||||||
&& docker-php-ext-install gd exif intl mbstring mcrypt mysql opcache pdo_mysql pdo_pgsql pgsql zip
|
|
||||||
|
|
||||||
# set recommended PHP.ini settings
|
# set recommended PHP.ini settings
|
||||||
# see https://secure.php.net/manual/en/opcache.installation.php
|
# see https://secure.php.net/manual/en/opcache.installation.php
|
||||||
|
@ -28,12 +14,28 @@ RUN { \
|
||||||
echo 'opcache.enable_cli=1'; \
|
echo 'opcache.enable_cli=1'; \
|
||||||
} > /usr/local/etc/php/conf.d/opcache-recommended.ini
|
} > /usr/local/etc/php/conf.d/opcache-recommended.ini
|
||||||
|
|
||||||
# PECL extensions
|
# PECL & source PHP extensions
|
||||||
RUN set -ex \
|
RUN set -ex \
|
||||||
&& pecl install APCu-4.0.10 \
|
&& apk update \
|
||||||
&& pecl install memcached-2.2.0 \
|
&& apk add autoconf make g++ gcc git file gnupg re2c \
|
||||||
&& pecl install redis-2.2.8 \
|
#&& echo "@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
|
||||||
&& docker-php-ext-enable apcu redis memcached
|
#&& echo '@community http://nl.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories \
|
||||||
|
#&& apk add php7-session@community \
|
||||||
|
#&& apk add php7-memcached@testing \
|
||||||
|
&& pecl install APCu-5.1.6 \
|
||||||
|
&& git clone https://github.com/phpredis/phpredis.git \
|
||||||
|
&& cd phpredis \
|
||||||
|
&& git checkout php7 \
|
||||||
|
&& phpize \
|
||||||
|
&& ./configure \
|
||||||
|
&& make && make install \
|
||||||
|
&& cd .. \
|
||||||
|
&& rm -rf phpredis \
|
||||||
|
&& docker-php-ext-enable redis apcu \
|
||||||
|
&& apk del autoconf make g++ gcc git \
|
||||||
|
&& rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ENV NEXTCLOUD_VERSION 10.0.0
|
ENV NEXTCLOUD_VERSION 10.0.0
|
||||||
VOLUME /var/www/html
|
VOLUME /var/www/html
|
||||||
|
|
Loading…
Add table
Reference in a new issue