Created
October 14, 2017 18:16
-
-
Save nickdandakis/d1d0c49b6fcfdf7255981b6ef591675d to your computer and use it in GitHub Desktop.
Next.js + Docker + AWS Elastic Beanstalk + AWS Elastic Container Service package.json
This file contains 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
{ | |
"name": "this-web-scale", | |
"version": "x.x.x", | |
"scripts": { | |
"dev": "node server.js", | |
"build": "NODE_ENV=production next build", | |
"start": "NODE_ENV=production node server.js", | |
"dockerize": "npm run build:docker && npm run tag:docker && npm run push:docker && npm run tag-latest:docker && npm run push-latest:docker", | |
"deploy": "npm run deploy:staging", | |
"deploy:staging": "eb use token-staging && eb deploy --label v$npm_package_version --verbose", | |
"deploy:stage": "npm run deploy:staging", | |
"deploy:production": "eb use token-web && eb deploy --label v$npm_package_version --verbose", | |
"deploy:prod": "npm run deploy:production", | |
"build:docker": "docker build -t $npm_package_config_docker_image:$npm_package_version -t $npm_package_config_docker_image:latest .", | |
"tag:docker": "docker tag $npm_package_config_docker_image $npm_package_config_docker_repo/$npm_package_config_docker_image:$npm_package_version", | |
"tag-latest:docker": "docker tag $npm_package_config_docker_image $npm_package_config_docker_repo/$npm_package_config_docker_image:latest", | |
"push:docker": "docker push $npm_package_config_docker_repo/$npm_package_config_docker_image:$npm_package_version", | |
"push-latest:docker": "docker push $npm_package_config_docker_repo/$npm_package_config_docker_image:latest", | |
"login:docker": "eval $(aws ecr get-login --no-include-email --region us-east-1)", | |
}, | |
"config": { | |
"docker": { | |
"repo": "637727063149.dkr.ecr.us-east-1.amazonaws.com", | |
"image": "token/storefront" | |
} | |
}, | |
"dependencies": { | |
... | |
}, | |
"devDependencies": { | |
... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment