https://github.com/upasanadhameliya/nginx-practice
https://github.com/upasanadhameliya/nginx-practice
docker dockerfile nginx
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/upasanadhameliya/nginx-practice
- Owner: Upasanadhameliya
- Created: 2022-10-28T07:35:10.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-02T14:01:41.000Z (over 3 years ago)
- Last Synced: 2025-06-04T00:45:09.635Z (about 1 year ago)
- Topics: docker, dockerfile, nginx
- Language: Dockerfile
- Homepage:
- Size: 1.25 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 .
```