nanlabs / devops-reference

This repository contains different infrastructure components, CI/CD pipelines, automation tools among other resources that are used in different projects here at NaN Labs.
MIT License
42 stars 16 forks source link

examples: Create a ready to use Docker and Compose example for Nest.js applications #115

Closed ulises-jeremias closed 1 year ago

ulises-jeremias commented 1 year ago

Describe the feature

Ready to use Dockerfil and compose.yml file for Nest.js apps

Use Case

We need to have a single Dockerfile that uses multistage for development, build, dev-envs and production

Proposed Solution

Create a example at examples/compose-nestjs with a multistage Dockerfile with the stages development, build, dev-envs and production, and a compose.yml file to easily test it

Also use dive to test the efficiency of the image for production build with CI=true dive <image-tag>

Other Information

You can install dive from here https://github.com/wagoodman/dive

Acknowledgements

Version used

-

Environment details (OS name and version, etc.)

-