-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (21 loc) · 942 Bytes
/
Dockerfile
File metadata and controls
29 lines (21 loc) · 942 Bytes
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
FROM wordpress:6.2-php8.1-apache
ENV PHP_SMTP_PORT 25
RUN apt-get update \
&& apt-get install --no-install-recommends -y \
msmtp libxml2-dev \
&& rm -rf /var/lib/apt/lists/* \
&& docker-php-ext-install soap \
&& pecl install redis && docker-php-ext-enable redis \
&& a2enmod headers
# Add ability to inject command on container startup
RUN mkdir /docker-entrypoint.d && sed -i '/^exec "$@"/i DIR=/docker-entrypoint.d && if [ -d "$DIR" ]; then /bin/run-parts "$DIR"; fi' /usr/local/bin/docker-entrypoint.sh
# Session management with env var
COPY docker-configure-session /docker-entrypoint.d
# Mail direct sending (mail function)
COPY docker-configure-mail /docker-entrypoint.d
# PHP ini configuration
COPY docker-php-ini-configure /docker-entrypoint.d
# HTTP expires headers
COPY expires.conf /etc/apache2/conf-enabled/expires.conf
# Apache log configuration
COPY 000-default.conf /etc/apache2/sites-enabled/000-default.conf