Recommended usage as part of a multi-stage Docker build.
Example: https://github.com/solid8tion/hnkeywords/blob/master/Dockerfile
docker build -t lambda-elixir .
aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws
aws ecr-public create-repository --repository-name lambda-elixir --catalog-data file://repositorycatalogdata.json --region us-east-1
# $repositoryUri is from the create-repository call
docker tag lambda-elixir:latest $repositoryUri
docker push $repositoryUri