2019-12-28 13:26:58 -05:00
|
|
|
FROM alpine:3.11
|
2017-03-12 13:49:45 -04:00
|
|
|
|
2019-11-28 08:42:34 -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-11-28 08:42:34 -05:00
|
|
|
ARG VERSION=v0.1.0-beta.11
|
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-12-28 13:26:58 -05:00
|
|
|
RUN apk add --no-progress --no-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 \
|
2019-11-26 21:42:51 -05:00
|
|
|
&& 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 \
|
2019-12-28 13:26:58 -05:00
|
|
|
&& rm -rf /flarum/.composer /tmp/* \
|
|
|
|
&& apk del --purge curl
|
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
|
2019-12-28 13:26:58 -05:00
|
|
|
CMD ["/usr/local/bin/startup"]
|