1 # Use the official PHP image with Apache
4 # Install required PHP extensions and dependencies
5 RUN apt-get update && apt-get install -y \
10 && docker-php-ext-install mysqli pdo pdo_mysql zip \
11 && docker-php-ext-enable mysqli pdo pdo_mysql zip \
12 && apt-get clean && rm -rf /var/lib/apt/lists/*
14 # Enable Apache modules
17 # Download and extract phpBB
20 RUN wget https://github.com/phpbb/phpbb/archive/refs/tags/release-3.3.15.zip && \
24 # Set up folder structure
25 RUN mv phpbb-release-*/* . && \
26 rm -rf phpbb-release-*/ && \
29 # Run composer dependencies
30 WORKDIR /var/www/html/phpbb
32 RUN php ../composer.phar install
37 RUN chown -R www-data:www-data /var/www/html/phpbb && \
38 chmod -R 755 /var/www/html/phpbb
43 CMD ["apache2-foreground"]