Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/njleonzhang/docker-nginx-spa-host
a docker image for host static website
https://github.com/njleonzhang/docker-nginx-spa-host
Last synced: 18 days ago
JSON representation
a docker image for host static website
- Host: GitHub
- URL: https://github.com/njleonzhang/docker-nginx-spa-host
- Owner: njleonzhang
- Created: 2020-04-08T03:13:49.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-08T07:31:05.000Z (almost 5 years ago)
- Last Synced: 2024-11-06T13:47:59.213Z (2 months ago)
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/njleonzhang/nginx-spa-host
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# docker-nginx-spa-host
docker image for hosting static spa website by nginx
## features
* redirect requests to `index.html` for support spa history mode
* empty response to `/listen` `GET` request for health check.## Use image
```
FROM njleonzhang/nginx-spa-host
COPY view/index.html /var/www/html/ // copy your index.html to nginx folder.
```