2017-03-12 15:40:40 -04:00
|
|
|
FROM alpine:edge
|
2017-03-12 13:49:45 -04:00
|
|
|
|
|
|
|
LABEL description "Next-generation forum software that makes online discussion fun" \
|
|
|
|
maintainer="Hardware <hardware@mondedie.fr>, Magicalex <magicalex@mondedie.fr>"
|
2016-07-14 04:12:58 -04:00
|
|
|
|
2016-10-23 17:01:02 -04:00
|
|
|
ARG VERSION=v0.1.0-beta.6
|
2016-07-17 05:35:13 -04:00
|
|
|
|
2016-07-18 01:34:39 -04:00
|
|
|
ENV GID=991 UID=991
|
2016-07-14 04:12:58 -04:00
|
|
|
|
2017-03-12 15:40:40 -04:00
|
|
|
RUN echo "@testing https://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
|
2017-03-30 07:39:37 -04:00
|
|
|
&& apk add -U \
|
2016-09-25 05:22:48 -04:00
|
|
|
nginx \
|
|
|
|
s6 \
|
|
|
|
su-exec \
|
|
|
|
curl \
|
2017-03-27 10:02:10 -04:00
|
|
|
php7@testing \
|
|
|
|
php7-fileinfo@testing \
|
|
|
|
php7-phar@testing \
|
|
|
|
php7-fpm@testing \
|
|
|
|
php7-curl@testing \
|
|
|
|
php7-mbstring@testing \
|
|
|
|
php7-openssl@testing \
|
|
|
|
php7-json@testing \
|
2017-03-29 14:41:50 -04:00
|
|
|
php7-pdo@testing \
|
2017-03-27 10:02:10 -04:00
|
|
|
php7-pdo_mysql@testing \
|
2017-03-29 14:41:50 -04:00
|
|
|
php7-mysqlnd@testing \
|
|
|
|
php7-zlib@testing \
|
2017-03-27 10:02:10 -04:00
|
|
|
php7-gd@testing \
|
|
|
|
php7-dom@testing \
|
|
|
|
php7-ctype@testing \
|
|
|
|
php7-session@testing \
|
|
|
|
php7-opcache@testing \
|
2017-03-30 07:39:37 -04:00
|
|
|
php7-xmlwriter@testing \
|
2016-09-25 05:22:48 -04:00
|
|
|
&& cd /tmp \
|
|
|
|
&& curl -s http://getcomposer.org/installer | php \
|
|
|
|
&& mv /tmp/composer.phar /usr/bin/composer \
|
|
|
|
&& chmod +x /usr/bin/composer \
|
|
|
|
&& mkdir -p /flarum/app \
|
|
|
|
&& chown -R $UID:$GID /flarum \
|
2016-10-23 17:01:02 -04:00
|
|
|
&& COMPOSER_CACHE_DIR="/tmp" su-exec $UID:$GID composer create-project flarum/flarum /flarum/app $VERSION --stability=beta \
|
2016-12-19 02:38:23 -05:00
|
|
|
# ----- Zend stratigility deprecated message temporary fix -----
|
|
|
|
# https://github.com/flarum/core/issues/1065
|
|
|
|
&& rm -f /flarum/app/composer.lock \
|
|
|
|
&& COMPOSER_CACHE_DIR="/tmp" su-exec $UID:$GID composer require zendframework/zend-stratigility:1.2.* -d /flarum/app \
|
|
|
|
# --------------------------------------------------------------
|
2016-09-25 05:22:48 -04:00
|
|
|
&& composer clear-cache \
|
|
|
|
&& rm -rf /flarum/.composer /var/cache/apk/*
|
2016-07-14 04:12:58 -04:00
|
|
|
|
|
|
|
COPY nginx.conf /etc/nginx/nginx.conf
|
2017-03-27 10:02:10 -04:00
|
|
|
COPY php-fpm.conf /etc/php7/php-fpm.conf
|
|
|
|
COPY opcache.ini /etc/php7/conf.d/00_opcache.ini
|
2016-10-23 17:01:02 -04:00
|
|
|
COPY config.php /flarum/app/config.php
|
2016-10-05 02:40:34 -04:00
|
|
|
COPY extension /usr/local/bin/extension
|
2016-09-25 05:22:48 -04:00
|
|
|
COPY s6.d /etc/s6.d
|
|
|
|
COPY run.sh /usr/local/bin/run.sh
|
2016-07-18 01:34:39 -04:00
|
|
|
|
2016-09-25 05:22:48 -04:00
|
|
|
RUN chmod +x /usr/local/bin/* /etc/s6.d/*/* /etc/s6.d/.s6-svscan/*
|
2016-07-14 04:12:58 -04:00
|
|
|
|
2016-12-02 02:23:11 -05:00
|
|
|
VOLUME /flarum/app/assets /flarum/app/extensions
|
2016-09-25 05:22:48 -04:00
|
|
|
|
|
|
|
EXPOSE 8888
|
|
|
|
|
|
|
|
CMD ["run.sh"]
|