This PR adds the ability to push and pull the image from Docker Hub.
Advantage of this is that we're no longer building the image on the server. Decreases deployment time and doesn't use any resources on the server which means minimal influence on operations.
We should still do a git-pull before running the Docker compose commands on the server just to ensure we have the updated files (e.g. docker-compose.yml) but now the server will only pull the latest image rather than consuming CPU to build it.
This PR adds the ability to push and pull the image from Docker Hub.
Advantage of this is that we're no longer building the image on the server. Decreases deployment time and doesn't use any resources on the server which means minimal influence on operations.
We should still do a git-pull before running the Docker compose commands on the server just to ensure we have the updated files (e.g. docker-compose.yml) but now the server will only pull the latest image rather than consuming CPU to build it.