indy-wp/wpcli/Dockerfile

22 lines
653 B
Docker
Raw Normal View History

2026-03-05 07:11:01 +00:00
# wpcli/Dockerfile
FROM wordpress:cli
# -------------------------------------------------
# Install unzip and Composer (needs root)
# -------------------------------------------------
USER root
RUN set -eux && \
apk add --no-cache unzip && \
curl -sS https://getcomposer.org/installer | \
php -- --install-dir=/usr/local/bin --filename=composer
# -------------------------------------------------
# Add the waitforDB entrypoint script
# -------------------------------------------------
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh
# Return to the default nonroot user
USER www-data