This step will walk you through building and pushing your Docker image to your container registry. This is useful to building custom images for your use case.
- Clone the docker-application-template:
git clone https://github.com/swanchain/docker-application-template.git
- Navigate to the root of the cloned repo:
cd docker-application-template
- Build the Docker image (example: filswan/helloworld:v1.0):
docker build --platform linux/amd64 --tag <username>/<repo>:<tag> .
- Push your container registry:
docker push <username>/<repo>:<tag>
Note: After completing the above process, you can view the image information on the docker hub, as shown below: