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/
- Host: GitHub
- URL: https://github.com/a7ul/blog-same-docker-local-prod-example
- Owner: a7ul
- Created: 2021-07-28T16:46:40.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-07-28T16:46:54.000Z (almost 4 years ago)
- Last Synced: 2025-01-09T08:45:54.460Z (5 months ago)
- Language: Dockerfile
- Size: 5.86 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 🎉🌮