https://github.com/sillyhatxu/learning-angular-container
https://github.com/sillyhatxu/learning-angular-container
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sillyhatxu/learning-angular-container
- Owner: sillyhatxu
- Created: 2019-08-09T11:24:36.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-08-09T12:20:47.000Z (almost 6 years ago)
- Last Synced: 2023-03-07T10:26:45.654Z (about 2 years ago)
- Language: Go
- Size: 2.07 MB
- Stars: 0
- Watchers: 1
- 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
```