An open API service indexing awesome lists of open source software.

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

A code repo for https://blog.atulr.com/docker-local-production-image/
https://github.com/a7ul/blog-same-docker-local-prod-example

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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/](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 🎉🌮