29 lines
732 B
Plaintext
29 lines
732 B
Plaintext
|
# retrieve the base image (default to latest).
|
||
|
ARG BASE_IMAGE="nextcloud:29-fpm-alpine"
|
||
|
|
||
|
FROM ${BASE_IMAGE}
|
||
|
LABEL org.opencontainers.image.authors="Belman Kraul <bkraul@gmail.com>"
|
||
|
|
||
|
RUN set -ex; \
|
||
|
PHP_VER=${PHP_VERSION:0:3} && PHP_VER=${PHP_VER//.} && \
|
||
|
apk add --no-cache --virtual .build-deps \
|
||
|
autoconf \
|
||
|
automake \
|
||
|
file \
|
||
|
g++ \
|
||
|
gcc \
|
||
|
make \
|
||
|
php${PHP_VER}-dev \
|
||
|
re2c \
|
||
|
samba-dev \
|
||
|
zlib-dev \
|
||
|
bzip2-dev; \
|
||
|
apk add --no-cache libsmbclient; \
|
||
|
pecl install smbclient; \
|
||
|
docker-php-ext-enable smbclient; \
|
||
|
docker-php-ext-install bz2; \
|
||
|
apk add --no-cache imagemagick imagemagick-svg; \
|
||
|
apk del .build-deps
|
||
|
|
||
|
COPY redis/redis.config.php /usr/src/nextcloud/config/redis.config.php
|