docker-compose-wordpress | Now run WordPress | Continuous Deployment library
kandi X-RAY | docker-compose-wordpress Summary
kandi X-RAY | docker-compose-wordpress Summary
WordPress powered by Docker! Now run WordPress anywhere you can install Docker.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of docker-compose-wordpress
docker-compose-wordpress Key Features
docker-compose-wordpress Examples and Code Snippets
Community Discussions
Trending Discussions on docker-compose-wordpress
QUESTION
I've been using this Docker-Compose Repository for Wordpress plugin/theme development with phpunit and wp-cli.
Now I need to have soap in the Wordpress container so am trying to modify it to use my own Dockerfile.
When I build from an image
reference in the docker-compose
file, the Wordpress container stays up:
ANSWER
Answered 2021-Aug-28 at 03:08You may need to have a detail look for multi-stage build.
With multi-stage builds, you use multiple FROM statements in your Dockerfile. Each FROM instruction can use a different base, and each of them begins a new stage of the build. You can selectively copy artifacts from one stage to another, leaving behind everything you don’t want in the final image. To show how this works, let’s adapt the Dockerfile from the previous section to use multi-stage builds.
Above means, unless you explicitly copy things from previous stage to next stage, the items in previous stage won't be seen in next stage. For you, when you define the FROM php:7.3
, this means your final image will be based on php:7.3
, has non business with wordpress
.
For next you got:
mz-docker-dev_wordpress_1 docker-php-entrypoint php -a Exit 0
This is because the php:7.3
's entrypoint is "docker-php-entrypoint"
, the container will exit directly after run the entrypoint if no foreground process there.
So, for you, just remove FROM php:7.3
, base on wordpress
image to do your customized works is the solution.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install docker-compose-wordpress
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page