/blog-same-docker-local-prod-example

A code repo for https://blog.atulr.com/docker-local-production-image/

Primary LanguageDockerfile

Blog: Use the same Dockerfile for both local development and production with multi-stage builds - Example repo

This repo contains the example code for the blog post:

🐳 Use the same Dockerfile for both local development and production with multi-stage builds

The blog link :

https://blog.atulr.com/docker-local-production-image/

To run the example:

  • git clone https://github.com/a7ul/blog-same-docker-local-prod-example

For multi docker file approach

  • cd multiple-docker-files
  • docker-compose up

For multi stage (single docker file):

  • cd single-docker-file
  • docker-compose up

Hope this helps 🎉🌮