ansible_wordpress-standalone/wordpress/apache/Dockerfile
2024-08-19 17:25:43 -04:00

22 lines
713 B
Docker

FROM wordpress:6.6.1-php8.2-apache
COPY fullchain.pem /etc/ssl/certs/
COPY privkey.pem /etc/ssl/private/
RUN set -eux; \
a2enmod ssl; \
{ \
echo '<VirtualHost _default_:443>'; \
# these IP ranges are reserved for "private" use and should thus *usually* be safe inside Docker
echo 'ServerName equilibrateit.com:443'; \
echo 'SSLEngine on'; \
echo 'SSLCertificateKeyFile /etc/ssl/private/privkey.pem'; \
echo 'SSLCertificateFile /etc/ssl/certs/fullchain.pem'; \
echo '</VirtualHost>'; \
} > /etc/apache2/sites-available/equilibrateit.com-ssl.conf; \
ln -s /etc/apache2/sites-available/equilibrateit.com-ssl.conf /etc/apache2/sites-enabled/equilibrateit.com-ssl.conf; \