2015-05-21 11:17:15 +02:00
|
|
|
#
|
|
|
|
# Dockerfile for phpBB
|
|
|
|
#
|
|
|
|
|
2017-05-16 09:21:58 +02:00
|
|
|
FROM php:7-apache
|
2017-05-16 09:17:26 +02:00
|
|
|
MAINTAINER kev <noreply@easypi.pro>
|
2015-05-21 11:17:15 +02:00
|
|
|
|
2016-05-04 05:36:18 +02:00
|
|
|
RUN a2enmod rewrite
|
|
|
|
|
|
|
|
RUN set -xe \
|
|
|
|
&& apt-get update \
|
|
|
|
&& apt-get install -y curl unzip bzip2 libpq-dev libpng12-dev libjpeg-dev \
|
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
|
|
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
|
|
|
|
&& docker-php-ext-install gd mysqli pgsql
|
2015-05-21 11:17:15 +02:00
|
|
|
|
|
|
|
WORKDIR /var/www/html
|
|
|
|
|
2018-10-25 16:45:22 +02:00
|
|
|
ENV PHPBB_VERSION 3.2.3
|
2015-05-21 12:59:21 +02:00
|
|
|
ENV PHPBB_URL https://www.phpbb.com/files/release/phpBB-${PHPBB_VERSION}.tar.bz2
|
2018-10-25 16:45:22 +02:00
|
|
|
ENV PHPBB_SHA a04e2f5972180d7e3cee37ae3d72552fd12e846d0e62e7b7993a6a0d317464e7
|
2015-05-21 11:17:15 +02:00
|
|
|
ENV PHPBB_FILE phpBB.tar.bz2
|
|
|
|
|
2016-05-04 05:36:18 +02:00
|
|
|
RUN set -xe \
|
|
|
|
&& curl -fSL ${PHPBB_URL} -o ${PHPBB_FILE} \
|
|
|
|
&& echo "${PHPBB_SHA} ${PHPBB_FILE}" | sha256sum -c - \
|
|
|
|
&& tar -xjf ${PHPBB_FILE} --strip-components=1 \
|
|
|
|
&& rm ${PHPBB_FILE} \
|
|
|
|
&& chown -R www-data:www-data .
|
2015-05-21 11:17:15 +02:00
|
|
|
|