CodeBuild configuration for a Rails server container.
Dockerfile: https://medium.com/@lemuelbarango/ruby-on-rails-smaller-docker-images-bff240931332
- Layered Docker build that produces small Rails server containers ~175 MB
- Docker build layer caching via build-env image
- Copy Dockerfile and buildspec.yml into your project root.
- Define the following environment variable in the CodeBuild project Environment
- REPOSITORY_URI
Original Docker file from @lemuelbarango https://medium.com/@lemuelbarango/ruby-on-rails-smaller-docker-images-bff240931332
Docker layer caching from @monken and @Rathgore aws/aws-codebuild-docker-images#26 (comment)