Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prawee/docker-multi-stage
Practise docker with multi-stage
https://github.com/prawee/docker-multi-stage
Last synced: about 1 month ago
JSON representation
Practise docker with multi-stage
- Host: GitHub
- URL: https://github.com/prawee/docker-multi-stage
- Owner: prawee
- Created: 2022-07-30T19:49:32.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-07-30T20:39:04.000Z (over 2 years ago)
- Last Synced: 2024-11-14T16:46:01.516Z (3 months ago)
- Language: HTML
- Size: 182 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker with multi-stage
Practice about multi-stage on Docker
## Clone
```bash
git clone https://github.com/prawee/docker-multi-stage.git
cd docker-multi-stage
yarn install
```## Start
```bash
yarn start
```## Docker
### Build
```bash
docker build -t nginx-react .
docker images
```### Run
```bash
docker ps
docker run -d -p 8080:80 --name react-webapp nginx-react
```## Update
```bash
docker images -f="dangling=true"
docker stop react-webapp
docker rm react-webapp
docker image prune
docker run -d -p 8081:80 --name react-webapp-8081 nginx-react
```