docker-flarum/Dockerfile

32 lines
1.3 KiB
Docker
Raw Normal View History

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
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-11-26 21:42:51 -05:00
RUN apk add --update-cache nginx s6 su-exec curl git php7 php7-fileinfo php7-phar php7-fpm php7-curl \
php7-mbstring php7-openssl php7-json php7-pdo php7-pdo_mysql php7-mysqlnd php7-zlib php7-gd php7-dom \
php7-ctype php7-session php7-opcache php7-xmlwriter php7-tokenizer php7-zip php7-intl \
&& cd /tmp \
&& curl -s http://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
&& chmod +x /usr/local/bin/composer \
&& composer global require --no-progress --no-suggest -- hirak/prestissimo \
&& mkdir -p /flarum/app \
&& chown -R $UID:$GID /flarum \
&& COMPOSER_CACHE_DIR="/tmp" su-exec $UID:$GID composer create-project --stability=beta --no-progress -- flarum/flarum /flarum/app $VERSION \
&& composer clear-cache \
&& rm -rf /flarum/.composer /var/cache/apk/*
2016-07-14 04:12:58 -04:00
COPY rootfs /
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
EXPOSE 8888
2016-09-25 05:22:48 -04:00
CMD ["run.sh"]