indy-wp/wpcli/Dockerfile

22 lines
653 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 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