Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/techprimers/multi-stage-example
Multi Stage docker build example
https://github.com/techprimers/multi-stage-example
docker dockerfile multi-stage-build multi-stage-docker spring-boot spring-boot-2
Last synced: about 2 months ago
JSON representation
Multi Stage docker build example
- Host: GitHub
- URL: https://github.com/techprimers/multi-stage-example
- Owner: TechPrimers
- Created: 2020-04-26T18:24:09.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-04-26T18:28:11.000Z (over 4 years ago)
- Last Synced: 2023-02-26T10:47:16.589Z (almost 2 years ago)
- Topics: docker, dockerfile, multi-stage-build, multi-stage-docker, spring-boot, spring-boot-2
- Language: Java
- Size: 51.8 KB
- Stars: 2
- Watchers: 2
- Forks: 45
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Multi Stage Docker build example
`Dockerfile` contains various stages which are tagged by a name using `as`.## Commands used
- `docker build . -t multi-stage-example:v1` - Build image
- `docker build . -t multi-stage-example:v1 --target=builder` - Build image using a specific stage
- `docker run multi-stage-example:v1 -p 8080:8080` - Run image