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:
@@ -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:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: wordpress
|
- name: wordpress
|
||||||
image: wordpress:latest
|
image: registry.neuralplatform.ai/harmonic-wordpress:latest
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user