DEV Community

Discussion on: Docker(Docker-compose) + Wordpress/Bedrock

Collapse
 
emil_priver profile image
Emil Privér

Hi,

I recommend you to create a Dockerfile inside "Website" folder which runs your script on build.

Collapse
 
julianfox profile image
Julian Renard

How can I create a Dockerfile especially for it? Should I add the php Dockerfile in the Website folder.

I tried to add the php dockerfile in website instead of php without success.

Thread Thread
 
emil_priver profile image
Emil Privér

Beat way is to create a Dockerfile inside “website” folder and add context to docker-compose which tells where the Dockerfile is. Inside of that Dockerfile will you need to build everything ans then you will be able to execute your commands