Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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.
```