2016-07-30 18:57:58 +02:00
|
|
|
FROM alpine:3.4
|
2016-07-01 12:11:22 +02:00
|
|
|
MAINTAINER Wonderfall <wonderfall@schrodinger.io>
|
|
|
|
|
|
|
|
ENV GID=991 UID=991
|
|
|
|
|
|
|
|
RUN echo "@commuedge https://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
|
|
|
|
&& echo "@testing https://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
|
|
|
|
&& BUILD_DEPS="tar" \
|
|
|
|
&& apk -U add \
|
|
|
|
${BUILD_DEPS} \
|
|
|
|
nginx \
|
|
|
|
supervisor \
|
|
|
|
openssl \
|
|
|
|
ca-certificates \
|
2016-07-30 19:26:07 +02:00
|
|
|
libsmbclient \
|
2016-07-01 12:11:22 +02:00
|
|
|
tini@commuedge \
|
|
|
|
php7@testing \
|
|
|
|
php7-fpm@testing \
|
|
|
|
php7-intl@testing \
|
|
|
|
php7-mbstring@testing \
|
|
|
|
php7-curl@testing \
|
|
|
|
php7-gd@testing \
|
|
|
|
php7-mcrypt@testing \
|
|
|
|
php7-opcache@testing \
|
|
|
|
php7-json@testing \
|
|
|
|
php7-session@testing \
|
|
|
|
php7-pdo@testing \
|
|
|
|
php7-dom@testing \
|
|
|
|
php7-ctype@testing \
|
|
|
|
php7-iconv@testing \
|
|
|
|
php7-pdo_mysql@testing \
|
2016-07-27 17:17:30 +02:00
|
|
|
php7-pdo_pgsql@testing \
|
2016-07-30 18:57:58 +02:00
|
|
|
php7-pgsql@testing \
|
2016-07-30 19:49:43 +02:00
|
|
|
php7-pdo_sqlite@testing \
|
2016-08-06 10:00:53 +02:00
|
|
|
php7-sqlite3@testing \
|
2016-07-01 12:11:22 +02:00
|
|
|
php7-zlib@testing \
|
|
|
|
php7-zip@testing \
|
|
|
|
php7-xmlreader@testing \
|
|
|
|
php7-posix@testing \
|
|
|
|
php7-openssl@testing \
|
|
|
|
php7-ldap@testing \
|
2016-07-30 19:26:07 +02:00
|
|
|
php7-ftp@testing \
|
2016-07-01 12:11:22 +02:00
|
|
|
php7-apcu@testing \
|
2016-07-30 19:26:07 +02:00
|
|
|
php7-redis@testing \
|
2016-07-01 12:11:22 +02:00
|
|
|
&& mkdir /nextcloud && cd /tmp \
|
|
|
|
&& wget -q https://download.nextcloud.com/server/daily/latest.tar.bz2 \
|
|
|
|
&& tar xjf latest.tar.bz2 --strip 1 -C /nextcloud \
|
|
|
|
&& apk del ${BUILD_DEPS} \
|
|
|
|
&& rm -rf /var/cache/apk/* /tmp/*
|
|
|
|
|
|
|
|
COPY nginx.conf /etc/nginx/nginx.conf
|
|
|
|
COPY php-fpm.conf /etc/php7/php-fpm.conf
|
|
|
|
COPY opcache.ini /etc/php7/conf.d/00_opcache.ini
|
|
|
|
COPY apcu.ini /etc/php7/conf.d/apcu.ini
|
|
|
|
COPY supervisord.conf /etc/supervisor/supervisord.conf
|
|
|
|
COPY run.sh /usr/local/bin/run.sh
|
|
|
|
COPY cron /etc/periodic/15min/nextcloud
|
|
|
|
|
|
|
|
RUN chmod +x /usr/local/bin/run.sh /etc/periodic/15min/nextcloud
|
|
|
|
|
|
|
|
VOLUME /data /config /apps2
|
|
|
|
|
|
|
|
EXPOSE 80
|
|
|
|
|
|
|
|
LABEL description="A server software for creating file hosting services" \
|
|
|
|
nextcloud="Nextcloud daily build"
|
|
|
|
|
|
|
|
CMD ["/sbin/tini","--","run.sh"]
|