I would like to use a public docker container that has WordPress but also Node.js.
A previous developer had created a custom docker container that worked with our pipeline but we no longer have access to that image so need to either use a public one or create a custom one. If it has to be custom, I'm not sure what all would need to be in it.
Here is our pipeline (minus the reference to the docker image)
clone:
depth: full
pipelines:
branches:
deploy/dev:
- step:
max-time: 5
script:
- cd wp-content/themes/themename
- npm rebuild node-sass
- npm i
- npm run prod
- cd ../../../
- composer install --prefer-dist
- rm -rf .git
- rm .gitignore
- echo "node_modules/" > .gitignore
- git init .
- git add wp-content/themes
- git add wp-content/plugins
- git commit -q -m 'Automatic Deployment'
- git push -f git@git.wpengine.com:production/name_of_repo.git master
`
Thx for any guidance on this.