1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02:00
dockerfiles/phpbb/Dockerfile

26 lines
831 B
Docker
Raw Normal View History

2015-05-21 11:17:15 +02:00
#
# Dockerfile for phpBB
#
FROM php:5.6-apache
MAINTAINER kev<noreply@datageek.info>
2015-05-21 14:43:29 +02:00
RUN apt-get update && apt-get install -y curl unzip bzip2 libpq-dev libpng12-dev libjpeg-dev \
2015-05-21 13:04:16 +02:00
&& rm -rf /var/lib/apt/lists/* \
2015-05-21 14:43:29 +02:00
&& 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
2016-01-11 17:43:14 +02:00
ENV PHPBB_VERSION 3.1.6
2015-05-21 12:59:21 +02:00
ENV PHPBB_URL https://www.phpbb.com/files/release/phpBB-${PHPBB_VERSION}.tar.bz2
2016-01-11 17:43:14 +02:00
ENV PHPBB_SHA 95c603151482870f3838e0dd861feae55fcb4d37d40cc238a7193ac8b2845094
2015-05-21 11:17:15 +02:00
ENV PHPBB_FILE phpBB.tar.bz2
RUN curl -fSL ${PHPBB_URL} -o ${PHPBB_FILE} \
2016-01-11 17:43:14 +02:00
&& echo "${PHPBB_SHA} ${PHPBB_FILE}" | sha256sum -c - \
2015-05-21 11:52:14 +02:00
&& tar -xjf ${PHPBB_FILE} --strip-components=1 \
2015-05-21 11:17:15 +02:00
&& rm ${PHPBB_FILE} \
&& chown -R www-data:www-data .