2019-10-10 08:24:53 -04:00
|
|
|
FROM alpine:3.10
|
2017-03-12 13:49:45 -04:00
|
|
|
|
2018-11-29 22:00:50 -05:00
|
|
|
LABEL description "Simple forum software for building great communities" \
|
2017-03-12 13:49:45 -04:00
|
|
|
maintainer="Hardware <hardware@mondedie.fr>, Magicalex <magicalex@mondedie.fr>"
|
2016-07-14 04:12:58 -04:00
|
|
|
|
2019-10-10 18:24:15 -04:00
|
|
|
ARG VERSION=v0.1.0-beta.10
|
2016-07-17 05:35:13 -04:00
|
|
|
|
2018-02-17 04:21:10 -05:00
|
|
|
ENV GID=991 \
|
|
|
|
UID=991 \
|
|
|
|
UPLOAD_MAX_SIZE=50M \
|
|
|
|
PHP_MEMORY_LIMIT=128M \
|
|
|
|
OPCACHE_MEMORY_LIMIT=128
|
2016-07-14 04:12:58 -04:00
|
|
|
|
2019-10-10 08:33:28 -04:00
|
|
|
RUN echo "@community http://dl-cdn.alpinelinux.org/alpine/v3.10/community" >> /etc/apk/repositories \
|
2018-01-14 05:31:43 -05:00
|
|
|
&& apk add -U \
|
|
|
|
nginx \
|
|
|
|
s6 \
|
|
|
|
su-exec \
|
|
|
|
curl \
|
2018-06-22 02:58:40 -04:00
|
|
|
git \
|
2018-01-14 05:31:43 -05:00
|
|
|
php7@community \
|
|
|
|
php7-fileinfo@community \
|
|
|
|
php7-phar@community \
|
|
|
|
php7-fpm@community \
|
|
|
|
php7-curl@community \
|
|
|
|
php7-mbstring@community \
|
|
|
|
php7-openssl@community \
|
|
|
|
php7-json@community \
|
|
|
|
php7-pdo@community \
|
|
|
|
php7-pdo_mysql@community \
|
|
|
|
php7-mysqlnd@community \
|
|
|
|
php7-zlib@community \
|
|
|
|
php7-gd@community \
|
|
|
|
php7-dom@community \
|
|
|
|
php7-ctype@community \
|
|
|
|
php7-session@community \
|
|
|
|
php7-opcache@community \
|
|
|
|
php7-xmlwriter@community \
|
|
|
|
php7-tokenizer@community \
|
2018-06-22 02:58:40 -04:00
|
|
|
php7-zip@community \
|
2019-10-10 19:39:40 -04:00
|
|
|
php7-intl@community \
|
2016-09-25 05:22:48 -04:00
|
|
|
&& cd /tmp \
|
2018-11-29 22:00:50 -05:00
|
|
|
&& curl -s http://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
|
|
|
|
&& chmod +x /usr/local/bin/composer \
|
2018-12-02 09:25:13 -05:00
|
|
|
&& composer global require hirak/prestissimo \
|
2016-09-25 05:22:48 -04:00
|
|
|
&& 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-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 /
|
2018-01-14 05:31:43 -05:00
|
|
|
RUN chmod +x /usr/local/bin/* /services/*/run /services/.s6-svscan/*
|
2018-11-29 22:00:50 -05:00
|
|
|
VOLUME /flarum/app/extensions /etc/nginx/conf.d
|
2018-11-30 04:26:05 -05:00
|
|
|
EXPOSE 8888
|
2016-09-25 05:22:48 -04:00
|
|
|
CMD ["run.sh"]
|