1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-07-05 09:31:24 +00:00
dockerfiles/phpbb/Dockerfile

31 lines
863 B
Docker
Raw Normal View History

2015-05-21 09:17:15 +00:00
#
# Dockerfile for phpBB
#
FROM php:5.6-apache
2016-05-01 01:06:20 +00:00
MAINTAINER kev<noreply@easypi.info>
2015-05-21 09:17:15 +00:00
2016-05-04 03:36:18 +00: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 09:17:15 +00:00
WORKDIR /var/www/html
2016-05-04 03:36:18 +00:00
ENV PHPBB_VERSION 3.1.9
2015-05-21 10:59:21 +00:00
ENV PHPBB_URL https://www.phpbb.com/files/release/phpBB-${PHPBB_VERSION}.tar.bz2
2016-05-04 03:36:18 +00:00
ENV PHPBB_SHA 94d67899269dd871cd314b3f2d3275fc7b31f5e6856e56fa70f0aed8e47a3ac8
2015-05-21 09:17:15 +00:00
ENV PHPBB_FILE phpBB.tar.bz2
2016-05-04 03:36:18 +00: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 09:17:15 +00:00