This is a Dockerfile to build a debian based container image running nginx and php-fpm 8.3.x / 8.2.x / 8.1.x / 8.0.x & Composer.
| Docker Tag | GitHub Release | Nginx Version | PHP Version | Debian Version |
|---|---|---|---|---|
| latest | master Branch | 1.17.2 | 8 | slim |
The build is automatically triggered by a git push to your feature/[branch]
git clone https://github.com/StegTechHub/tooling-02.git tooling
cd toolingCreate a feature branch. # Always start with feature/[name of your branch]
git branch -b feature/add-css-style-to-about-us-pageUpdate the application code in ./html/
Then add/commit/push to gitlab
git status # to see your changesgit add --all # If you are satisfied with your changes and willing to push everything. Otherwise, select only the files to addgit commit -m "Put some message about this push here"git push --set-upstream origin feature/[Your branch name]Google Container Registry (Depending on the environment. Either non-prod or prod)
docker pull eu.gcr.io/$environment/tooling:${tag-version}Running (You can do this step without the pulling the above as it will put down if not found locally)
To run the container:
docker run -d eu.gcr.io/$environment/tooling:${tag-version}Default web root:
/usr/share/nginx/html