fix: use custom WordPress image with wp-cli pre-installed

Adds a Dockerfile extending wordpress:latest to include wp-cli at
/usr/local/bin/wp. Required for sync-whitepapers.py to manage content
via kubectl exec without manual installation after each pod restart.
This commit is contained in:
Will Anderson
2026-04-09 00:09:00 -05:00
parent a283f1148f
commit 8c40075b81
2 changed files with 7 additions and 1 deletions
@@ -0,0 +1,6 @@
FROM wordpress:latest
# Install wp-cli so sync-whitepapers.py can manage content via kubectl exec
RUN curl -sL https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar \
-o /usr/local/bin/wp \
&& chmod +x /usr/local/bin/wp
@@ -96,7 +96,7 @@ spec:
spec:
containers:
- name: wordpress
image: wordpress:latest
image: registry.neuralplatform.ai/harmonic-wordpress:latest
ports:
- containerPort: 80
env: