1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/phpbb/Dockerfile

31 lines
969 B
Docker
Raw Normal View History

2015-05-21 11:17:15 +02:00
#
# Dockerfile for phpBB
#
2022-01-21 13:23:05 +02:00
FROM php:8-apache
MAINTAINER EasyPi Software Foundation
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 \
2022-01-21 13:23:05 +02:00
&& apt-get install -y curl unzip bzip2 libfreetype6-dev libjpeg-dev libpng-dev libpq-dev \
2016-05-04 05:36:18 +02:00
&& rm -rf /var/lib/apt/lists/* \
2022-01-21 13:23:05 +02:00
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
2016-05-04 05:36:18 +02:00
&& docker-php-ext-install gd mysqli pgsql
2015-05-21 11:17:15 +02:00
WORKDIR /var/www/html
2022-01-21 13:23:05 +02:00
ENV PHPBB_VERSION=3.3.5
ENV PHPBB_URL=https://www.phpbb.com/files/release/phpBB-${PHPBB_VERSION}.tar.bz2
ENV PHPBB_URL=https://download.phpbb.com/pub/release/3.3/${PHPBB_VERSION}/phpBB-${PHPBB_VERSION}.tar.bz2
ENV PHPBB_SHA=349699e0cfaf235669cdb72528982e6519c6ebd109b3c4bc31d1847ca1520d0b
ENV PHPBB_FILE=phpBB.tar.bz2
2015-05-21 11:17:15 +02:00
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 .