# 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 wait‑for‑DB entrypoint script # ------------------------------------------------- COPY entrypoint.sh /usr/local/bin/entrypoint.sh RUN chmod +x /usr/local/bin/entrypoint.sh # Return to the default non‑root user USER www-data