Created
December 18, 2017 15:17
-
-
Save TheDeveloper/0bd7828cd7ab28bf5a0ed4d0c4565536 to your computer and use it in GitHub Desktop.
CodeBuild instructions for building a container for a Node.js app.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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