This repo is used to store the Dockerfiles used to build our base images.
- Start by creating the base image folder (ie.
12.21.0) - Use a previous template and modify the node version. Typically we use
-slimas we don't need the full-blown original node image - Navigate to that directory and run
docker build -t edvisorio/node:<new_version> .. This will build the image locally on your machine - Run
docker push edvisorio/node:<new_version>. This will push the image to our remoet repository in dockerhub - Create another directory for the
buildimage (naming is<version>-build). This is typically the image we use in our CI environments as it comes with some pre-added things to make our lives easier. - Navigate to that directory and run
docker build -t edvisorio/node:<new_version>-build .. This will build the image locally on your machine - Run
docker push edvisorio/node:<new_version>-build. This will push the image to our remoet repository in dockerhub