docker-flarum/Dockerfile

64 lines
1.6 KiB
Docker
Raw Normal View History

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
ENV GID=991 \
UID=991 \
UPLOAD_MAX_SIZE=50M \
PHP_MEMORY_LIMIT=128M \
2019-12-28 16:24:02 -05:00
OPCACHE_MEMORY_LIMIT=128 \
DB_HOST=mariadb \
DB_USER=flarum \
DB_NAME=flarum \
DB_PORT=3306 \
FLARUM_TITLE=Docker-Flarum \
DEBUG=false \
LOG_TO_STDOUT=false \
GITHUB_TOKEN_AUTH=false
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 \
2019-12-28 17:47:12 -05:00
&& COMPOSER_CACHE_DIR="/tmp" composer create-project --stability=beta --no-progress -- flarum/flarum /flarum/app $VERSION \
2019-11-26 21:42:51 -05:00
&& composer clear-cache \
2019-12-28 13:26:58 -05:00
&& rm -rf /flarum/.composer /tmp/* \
2019-12-28 17:03:15 -05:00
&& apk del --purge curl
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
2019-12-28 13:26:58 -05:00
CMD ["/usr/local/bin/startup"]