Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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
```