Skip to content

Latest commit

 

History

History
19 lines (10 loc) · 494 Bytes

README.md

File metadata and controls

19 lines (10 loc) · 494 Bytes

aws login

aws ecr get-login-password --region ${REGION} | docker login --username AWS --password-stdin ${AWS_ACCOUNT_ID}.dkr.ecr.${REGION}.amazonaws.com

build a image and push

docker build -t ${IMAGE_NAME} .

tag the image

docker tag ${IMAGE_NAME}:latest ${AWS_ACCOUNT_ID}.dkr.ecr.${REGION}.amazonaws.com/${IMAGE_NAME}:latest

run locally

docker run -p 9000:8080 ${IMAGE_NAME}:latest

push

docker push ${AWS_ACCOUNT_ID}.dkr.ecr.${REGION}.amazonaws.com/${IMAGE_NAME}:latest