Skip to content

Instantly share code, notes, and snippets.

@diegodorado
Last active March 27, 2021 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diegodorado/f7f7d1b4f465e99ba23ff447f000fcd1 to your computer and use it in GitHub Desktop.
Save diegodorado/f7f7d1b4f465e99ba23ff447f000fcd1 to your computer and use it in GitHub Desktop.
Wordpress Dockerfile for small sites
ARG WORDPRESS_DB_HOST
ARG WORDPRESS_DB_NAME
ARG WORDPRESS_TABLE_PREFIX
ARG WORDPRESS_DB_USER
ARG WORDPRESS_DB_PASSWORD
FROM wordpress:5.7
# Don't run mpm for small sites
RUN sed -i 's/Servers.*/Servers 1/' /etc/apache2/mods-available/mpm_prefork.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment