This repository has been archived on 2026-09-11. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Secure-OCF-Web-Hosting/apache/Dockerfile

31 lines
660 B
Docker

FROM php:8.2-apache
# Install required PHP extensions for WordPress
RUN apt-get update && apt-get install -y \
libpng-dev \
libjpeg-dev \
libfreetype6-dev \
libzip-dev \
libicu-dev \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install -j$(nproc) \
gd \
mysqli \
pdo_mysql \
zip \
intl \
opcache \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Enable Apache modules
RUN a2enmod rewrite headers expires
# Copy custom Apache configuration
COPY conf/httpd.conf /etc/apache2/sites-available/000-default.conf
# Set working directory
WORKDIR /var/www
EXPOSE 80