Stop tracking generated theme assets, wpcli scripts and export XML
|
Before Width: | Height: | Size: 47 KiB |
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 5.3 KiB |
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 1.7 KiB |
|
|
@ -1,21 +0,0 @@
|
|||
# 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
|
||||
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Wait for MariaDB
|
||||
until mysqladmin ping -h"$WORDPRESS_DB_HOST" -u"$WORDPRESS_DB_USER" -p"$WORDPRESS_DB_PASSWORD" --silent; do
|
||||
echo "⏳ Waiting for database..."
|
||||
sleep 2
|
||||
done
|
||||
|
||||
exec "$@"
|
||||