headless-wp-starter
headless-wp-starter copied to clipboard
'wp-headless' failed to build:
Here is the error when trying to run the docker-compose up -d command. Couldn't find any other issues with this same error.
Building wp-headless
Step 1/9 : FROM wordpress
---> d5668b07b850
Step 2/9 : RUN sed -i 's/80/8080/' /etc/apache2/ports.conf /etc/apache2/sites-enabled/000-default.conf
---> Using cache
---> 3bec69ac14d8
Step 3/9 : RUN mv "$PHP_INI_DIR"/php.ini-development "$PHP_INI_DIR"/php.ini
---> Running in ecc784a32bdc
mv: cannot stat '/usr/local/etc/php/php.ini-development': No such file or directory
ERROR: Service 'wp-headless' failed to build: The command '/bin/sh -c mv "$PHP_INI_DIR"/php.ini-development "$PHP_INI_DIR"/php.ini' returned a non-zero code: 1```
Anyone got a fix for this? Am seeing the same issue.
i have the same issue too!
This could be caused by temporary changes in the wordpress or PHP docker images, although travis still builds the container okay. Does https://github.com/postlight/headless-wp-starter/tree/fix-wordpress-docker-tag fix this problem for any of you?
Alternatively, try updating your wordpress image first, then rebuilding:
docker pull wordpress
docker compose up --build --force-recreate wp-headless
This issue still persists, does not improve
I am getting this as well.