2016-04-30 12:57:18 +02:00
|
|
|
FROM alpine:3.3
|
|
|
|
MAINTAINER Wonderfall <wonderfall@schrodinger.io>
|
2016-04-11 15:59:32 +02:00
|
|
|
|
2016-04-12 23:54:31 +02:00
|
|
|
ARG VERSION=9.0.1
|
2016-04-30 12:57:18 +02:00
|
|
|
ENV GID=991 UID=991
|
2016-04-11 16:06:13 +02:00
|
|
|
|
2016-04-30 12:57:18 +02:00
|
|
|
RUN echo "@commuedge http://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
|
|
|
|
&& echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
|
|
|
|
&& echo "@edge http://nl.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories \
|
|
|
|
&& apk -U add \
|
2016-04-11 15:59:32 +02:00
|
|
|
nginx \
|
|
|
|
supervisor \
|
2016-04-30 12:57:18 +02:00
|
|
|
gnupg \
|
|
|
|
tar \
|
|
|
|
openssl \
|
2016-04-11 15:59:32 +02:00
|
|
|
ca-certificates \
|
2016-04-30 12:57:18 +02:00
|
|
|
tini@commuedge \
|
|
|
|
libwebp@edge \
|
|
|
|
php7@testing \
|
|
|
|
php7-fpm@testing \
|
|
|
|
php7-intl@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 \
|
|
|
|
php7-zlib@testing \
|
|
|
|
php7-zip@testing \
|
|
|
|
php7-xmlreader@testing \
|
2016-04-11 15:59:32 +02:00
|
|
|
&& mkdir /owncloud && cd /tmp \
|
|
|
|
&& wget -q https://download.owncloud.org/community/owncloud-$VERSION.tar.bz2 \
|
|
|
|
&& wget -q https://download.owncloud.org/community/owncloud-$VERSION.tar.bz2.sha256 \
|
|
|
|
&& wget -q https://download.owncloud.org/community/owncloud-$VERSION.tar.bz2.asc \
|
|
|
|
&& wget -q https://owncloud.org/owncloud.asc \
|
|
|
|
&& sha256sum -c owncloud-$VERSION.tar.bz2.sha256 \
|
|
|
|
&& gpg --import owncloud.asc \
|
|
|
|
&& gpg --verify owncloud-$VERSION.tar.bz2.asc \
|
|
|
|
&& tar xjf /tmp/owncloud-$VERSION.tar.bz2 --strip 1 -C /owncloud \
|
2016-04-30 13:22:04 +02:00
|
|
|
&& sed -i "s/;env\[PATH\]/env\[PATH\]/g" /etc/php7/php-fpm.d/www.conf \
|
2016-04-30 12:57:18 +02:00
|
|
|
&& apk del tar ca-certificates gnupg \
|
|
|
|
&& rm -rf /var/cache/apk/* /tmp/*
|
2016-04-11 15:59:32 +02:00
|
|
|
|
|
|
|
COPY nginx.conf /etc/nginx/nginx.conf
|
2016-04-30 12:57:18 +02:00
|
|
|
COPY php-fpm.conf /etc/php7/php-fpm.conf
|
|
|
|
COPY opcache.ini /etc/php7/conf.d/00_opcache.ini
|
|
|
|
COPY supervisord.conf /etc/supervisor/supervisord.conf
|
2016-04-11 15:59:32 +02:00
|
|
|
COPY run.sh /usr/local/bin/run.sh
|
2016-04-30 12:57:18 +02:00
|
|
|
COPY cron /etc/periodic/15min/owncloud
|
2016-04-11 15:59:32 +02:00
|
|
|
|
2016-04-30 12:57:18 +02:00
|
|
|
RUN chmod +x /usr/local/bin/run.sh /etc/periodic/15min/owncloud
|
2016-04-11 15:59:32 +02:00
|
|
|
|
|
|
|
VOLUME /data /config /apps2
|
|
|
|
EXPOSE 80
|
|
|
|
|
|
|
|
LABEL description="A server software for creating file hosting services" \
|
|
|
|
owncloud="ownCloud v$VERSION"
|
|
|
|
|
|
|
|
CMD ["tini","--","run.sh"]
|