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

https://github.com/upasanadhameliya/nginx-practice


https://github.com/upasanadhameliya/nginx-practice

docker dockerfile nginx

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

          

### Build
```
docker build -t nginx-practice .
```

### Run (Windows CMD)
```
docker run --name ngx ^
-it -p 80:80 ^
-v "%cd%/default:/etc/nginx/sites-available/default" ^
-v "%cd%/nginx.conf:/etc/nginx/nginx.conf" ^
nginx-practice
```

### Copy a file from the container to host
```
docker cp {container_id}:/etc/nginx/sites-available/default .
```