-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.wordpress
More file actions
25 lines (23 loc) · 1.1 KB
/
Copy pathDockerfile.wordpress
File metadata and controls
25 lines (23 loc) · 1.1 KB
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
FROM wordpress:php8.4-apache
# Tune Apache prefork for small VPS deployments.
RUN cat > /etc/apache2/mods-available/mpm_prefork.conf <<'EOF'
<IfModule mpm_prefork_module>
StartServers 2
MinSpareServers 2
MaxSpareServers 4
MaxRequestWorkers 8
MaxConnectionsPerChild 500
</IfModule>
EOF
# New image builds bundle the current stable releases from WordPress.org.
# Existing sites keep their plugin files in the persistent wordpress_data volume;
# image rebuilds are not an in-place plugin downgrade mechanism.
RUN set -eux; \
apt-get update; \
apt-get install -y --no-install-recommends ca-certificates curl unzip; \
curl -fsSL "https://downloads.wordpress.org/plugin/woocommerce.zip" -o /tmp/woocommerce.zip; \
curl -fsSL "https://downloads.wordpress.org/plugin/btcpay-greenfield-for-woocommerce.zip" -o /tmp/btcpay.zip; \
unzip -q /tmp/woocommerce.zip -d /usr/src/wordpress/wp-content/plugins; \
unzip -q /tmp/btcpay.zip -d /usr/src/wordpress/wp-content/plugins; \
rm -f /tmp/woocommerce.zip /tmp/btcpay.zip; \
rm -rf /var/lib/apt/lists/*