Multi-stage building with Docker

Multiple stages within one dockerfile

Multi-Stage Builds in dotnet core

Why use it

  • you create builds that are CI/CD independent, i.e. you don’t care if you run a build with TeamCity or Gitlab or Jenkins.
  • you have one host dependency, i.e. docker
  • you commit in your repository the steps of your build, which means that you can have different steps on different branches (it might not work very well in TeamCity, but still it’s possible).
  • consistent build environment, i.e. what is inside docker does not change, they are repeatable and consistent.

Conclusion

References

--

--

⌘ Software Plumber ⌘

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store