https://github.com/sillyhatxu/docker-ui
https://github.com/sillyhatxu/docker-ui
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sillyhatxu/docker-ui
- Owner: sillyhatxu
- Created: 2019-08-14T08:59:12.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-08-18T11:13:48.000Z (over 6 years ago)
- Last Synced: 2023-03-07T10:26:43.372Z (almost 3 years ago)
- Language: Go
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# learning-angular-container
## nginx container
Dockerfile
```
FROM nginx
COPY dist/learning-angular /usr/share/nginx/html
```
shell
```
docker build -t content-nginx .
docker run --name content-nginx -d -p 9800:80 content-nginx
```
browser
```
http://localhost:9800/demo.html
http://localhost:9800/index.html
```
## golang container
Dockerfile
```
```
shell
```
docker build -t content-golang .
docker run --name content-golang -d -p 9800:80 content-golang
```
browser
```
http://localhost:9800/demo.html
http://localhost:9800/index.html
```
```
docker run -it -v /var/run/docker.sock:/var/run/docker.sock ubuntu:latest sh -c "apt-get update ; apt-get install docker.io -y ; bash"
```