2017-05-13 05:12:25 -04:00
|
|
|
FROM wonderfall/nginx-php
|
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
|
|
|
|
2017-05-13 05:12:25 -04:00
|
|
|
ENV GID=991 UID=991 UPLOAD_MAX_SIZE=50M MEMORY_LIMIT=128M
|
2016-07-14 04:12:58 -04:00
|
|
|
|
2017-05-13 05:12:25 -04:00
|
|
|
RUN apk add -U curl \
|
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
|
|
|
|
2017-05-13 05:12:25 -04:00
|
|
|
COPY rootfs /
|
2016-09-25 05:22:48 -04:00
|
|
|
RUN chmod +x /usr/local/bin/* /etc/s6.d/*/* /etc/s6.d/.s6-svscan/*
|
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"]
|