docker-nextcloud/Dockerfile
2016-08-22 12:09:22 +01:00

95 lines
1.6 KiB
Docker
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

FROM lsiobase/alpine.nginx
MAINTAINER sparklyballs
# package version
ENV NEXTCLOUD_VER="9.0.53"
# environment settings
ENV NEXTCLOUD_PATH="/config/www/nextcloud"
# install build-dependencies
RUN \
apk add --no-cache --virtual=build-dependencies \
autoconf \
automake \
file \
g++ \
gcc \
make \
php5-dev \
re2c \
samba-dev \
zlib-dev && \
# install runtime packages
apk add --no-cache \
curl \
ffmpeg \
libxml2 \
php5-apcu \
php5-bz2 \
php5-ctype \
php5-curl \
php5-dom \
php5-exif \
php5-ftp \
php5-gd \
php5-gmp \
php5-iconv \
php5-imap \
php5-intl \
php5-ldap \
php5-mcrypt \
php5-openssl \
php5-pcntl \
php5-pgsql \
php5-pdo_mysql \
php5-pdo_pgsql \
php5-pdo_sqlite \
php5-posix \
php5-sqlite3 \
php5-xml \
php5-xmlreader \
php5-zip \
php5-zlib \
samba \
sudo \
tar \
unzip && \
apk add --no-cache \
--repository http://nl.alpinelinux.org/alpine/edge/testing \
php5-memcached && \
# fetch php smbclient source
git clone git://github.com/eduardok/libsmbclient-php.git /tmp/smbclient && \
# compile smbclient
cd /tmp/smbclient && \
phpize && \
./configure && \
make && \
make install && \
# uninstall build-dependencies
apk del --purge \
build-dependencies && \
# configure php and nginx for nextcloud
echo "extension="smbclient.so"" >> /etc/php5/php.ini && \
sed -i \
's/;always_populate_raw_post_data = -1/always_populate_raw_post_data = -1/g' \
/etc/php5/php.ini && \
echo "env[PATH] = /usr/local/bin:/usr/bin:/bin" >> /defaults/nginx-fpm.conf && \
# cleanup
rm -rf \
/tmp/*
# copy local files
COPY root/ /
# ports and volumes
EXPOSE 443
VOLUME /config /data