├── .gitignore ├── Dockerfile └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .history/ -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:20-alpine 2 | 3 | RUN apk add --no-cache \ 4 | python3 \ 5 | py-pip \ 6 | py-setuptools \ 7 | ca-certificates \ 8 | openssl \ 9 | groff \ 10 | less \ 11 | bash \ 12 | curl \ 13 | jq \ 14 | git \ 15 | zip \ 16 | aws-cli && \ 17 | aws configure set preview.cloudfront true 18 | 19 | ENV TERRAFORM_VERSION 1.7.5 20 | 21 | RUN wget -O terraform.zip https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip && \ 22 | unzip terraform.zip -d /usr/local/bin && \ 23 | rm -f terraform.zip 24 | 25 | ENTRYPOINT ["/bin/bash", "-c"] 26 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Docker-node-terraform-aws 2 | 3 | [![Dockerhub badge](http://dockeri.co/image/jch254/docker-node-terraform-aws)](https://hub.docker.com/r/jch254/docker-node-terraform-aws) 4 | 5 | Docker-powered build/deployment environment for Node.js projects on AWS. This Docker image is intended for use with [Bitbucket Pipelines](https://bitbucket.org/product/features/pipelines) and [AWS CodeBuild](https://aws.amazon.com/codebuild). 6 | 7 | This image is based on node:20-alpine and has Terraform 1.7.5, the AWS CLI and Yarn installed (see Dockerfile for all other installed utilities). 8 | 9 | See [serverless-node-dynamodb-ui](https://github.com/jch254/serverless-node-dynamodb-ui) for an example of this image in action. 10 | 11 | Use the [12.x](https://github.com/jch254/docker-node-terraform-aws/tree/12.x) branch/tag for an image running Node v12, the [14.x](https://github.com/jch254/docker-node-terraform-aws/tree/14.x) branch/tag for an image running Node v14, the [16.x](https://github.com/jch254/docker-node-terraform-aws/tree/16.x) branch/tag for an image running Node v16, the [18.x](https://github.com/jch254/docker-node-terraform-aws/tree/18.x) branch/tag for an image running Node v18 and the [20.x](https://github.com/jch254/docker-node-terraform-aws/tree/20.x) branch/tag for an image running Node v20. 12 | --------------------------------------------------------------------------------