-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
38 lines (26 loc) · 1.32 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Name ctsmedia/contao-phpbb-bridge
FROM ctsmedia/contao:4.4
MAINTAINER Daniel Schwiperich | ctsmedia <entwicklung@cts-media.eu>
ARG BRIDGE_COMPOSER_VERSION=dev-master
ARG PHPBB_VERSION=3.2.1
ARG CONTAO_VERSION=~4.4
# Add bridge Dependency
RUN composer require ctsmedia/contao-phpbb-bridge-bundle ${BRIDGE_COMPOSER_VERSION}
# Cleanup tmp dir because contaos post command do some unusal stuff which breaks the system if it was run as root
# https://github.com/contao/core-bundle/blob/master/src/Command/AbstractLockedCommand.php#L32
RUN rm -r /tmp/*
# Also clean up cache
RUN rm -r var/cache/*
# Preparing phpbb
RUN curl -L https://www.phpbb.com/files/release/phpBB-${PHPBB_VERSION}.zip -o phpbb.zip \
&& unzip phpbb.zip \
&& mv phpBB3 /var/www/share/project/web/phpbb \
&& chmod -R 777 /var/www/share/project/web/phpbb
# Prepare demo parameters.yml with additional value so that the ip from php fpm container is allowed
RUN echo " phpbb_bridge.allow_external_ip_access: true" >> /var/www/share/data/config/parameters.yml
# Install phpbb extension dependencies
RUN composer install -d vendor/ctsmedia/contao-phpbb-bridge-bundle/src/Resources/phpBB/ctsmedia/contaophpbbbridge
RUN chmod -R 0777 .
RUN chown -R www-data:www-data .
# phpbb has no pdo support, so we install mysqli extension
RUN docker-php-ext-install mysqli