Skip to content

Instantly share code, notes, and snippets.

@TheDeveloper
Created December 18, 2017 15:17
Show Gist options
  • Save TheDeveloper/0bd7828cd7ab28bf5a0ed4d0c4565536 to your computer and use it in GitHub Desktop.
Save TheDeveloper/0bd7828cd7ab28bf5a0ed4d0c4565536 to your computer and use it in GitHub Desktop.
CodeBuild instructions for building a container for a Node.js app.
version: 0.1
phases:
pre_build:
commands:
- $(aws ecr get-login --region $AWS_REGION)
- pip install docker-compose
build:
commands:
- docker build -t $APP_IMAGE .
- COMPOSE_HTTP_TIMEOUT=200 docker-compose run --rm test
- docker push $APP_IMAGE
post_build:
commands:
- echo Build completed on `date`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment