Guest User

Untitled

a guest
Jun 19th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. $(aws ecr get-login --region $region --no-include-email)
  2. # Copy Dockerfiles
  3. !cp Dockerfile.* build/
  4.  
  5. # Copy training script and config file
  6. !cp cifar_10_keras.py build/
  7. !cp keras.json build/
  8.  
  9. # Building the image
  10. !cd build docker build -t $image_tag -f $dockerfile . cd ..
  11.  
  12. # Assign a tag to the Docker image
  13. !docker tag $image_tag $account.dkr.ecr.$region.amazonaws.com/$repo_name:latest
  14.  
  15. # Push docker image to ECR
  16. !docker push $account.dkr.ecr.$region.amazonaws.com/$repo_name:latest
Add Comment
Please, Sign In to add comment