Build and push your Docker image

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.

git clone https://github.com/swanchain/docker-application-template.git
  1. Navigate to the root of the cloned repo:

cd docker-application-template
  1. Build the Docker image (example: filswan/helloworld:v1.0):

docker build --platform linux/amd64 --tag <username>/<repo>:<tag> .
  1. 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:

Last updated