Skip to content

Instantly share code, notes, and snippets.

@siakon89
Last active July 10, 2018 09:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save siakon89/de06a002ac2e5d690808ef82882553ae to your computer and use it in GitHub Desktop.
Save siakon89/de06a002ac2e5d690808ef82882553ae to your computer and use it in GitHub Desktop.
$(aws ecr get-login --region $region --no-include-email)
# Copy Dockerfiles
!cp Dockerfile.* build/
# Copy training script and config file
!cp cifar_10_keras.py build/
!cp keras.json build/
# Building the image
!cd build
!docker build -t $image_tag -f $dockerfile .
!cd ..
# Assign a tag to the Docker image
!docker tag $image_tag $account.dkr.ecr.$region.amazonaws.com/$repo_name:latest
# Push docker image to ECR
!docker push $account.dkr.ecr.$region.amazonaws.com/$repo_name:latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment